JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ChallengeRewardListCell Class Reference

A reward row: a background plate carrying a title and an optional validity period. More...

#include <ChallengeRewardListCell.h>

Inheritance diagram for ChallengeRewardListCell:
Collaboration diagram for ChallengeRewardListCell:

Instance Methods

(instancetype) - initWithStyle:reuseIdentifier:
 Sets the cell's background colour and selection style.
(void) - setBgImage:
 Creates the plate on first use and sets its image.
(void) - setTitle:period:
 Creates the two labels on first use and fills them in.

Detailed Description

A reward row: a background plate carrying a title and an optional validity period.

Method Documentation

◆ initWithStyle:reuseIdentifier:

- (instancetype) initWithStyle: (UITableViewCellStyle) style
reuseIdentifier: (nullable NSString *) reuseIdentifier 

Sets the cell's background colour and selection style.

Creates no subviews.

Parameters
styleThe cell style.
reuseIdentifierThe reuse identifier, or nil for a non-reusable cell.
Returns
The initialised cell.
Ghidra address:
0xaa4fc

◆ setBgImage:

- (void) setBgImage: (nullable UIImage *) bgImg

Creates the plate on first use and sets its image.

The plate is sized to the image and placed at the cell's origin. Must be called before -setTitle:period:, which measures against this plate and does nothing without it.

Parameters
bgImgThe plate artwork.
Ghidra address:
0xaa7e0

◆ setTitle:period:

- (void) setTitle: (nullable NSString *) title
period: (nullable NSString *) period 

Creates the two labels on first use and fills them in.

Returns immediately when -setBgImage: has not run, since every coordinate here is derived from the plate's frame. A nil period leaves the period label uncreated and centres the title on its own.

Parameters
titleThe reward's name.
periodThe validity period, or nil for a reward that has none.
Ghidra address:
0xaa598

The documentation for this class was generated from the following file: