|
JubeatPlus 3.9.11
|
A reward row: a background plate carrying a title and an optional validity period. More...
#include <ChallengeRewardListCell.h>


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. | |
A reward row: a background plate carrying a title and an optional validity period.
| - (instancetype) initWithStyle: | (UITableViewCellStyle) | style | |
| reuseIdentifier: | (nullable NSString *) | reuseIdentifier |
Sets the cell's background colour and selection style.
Creates no subviews.
| style | The cell style. |
| reuseIdentifier | The reuse identifier, or nil for a non-reusable cell. |
| - (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.
| bgImg | The plate artwork. |
| - (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.
| title | The reward's name. |
| period | The validity period, or nil for a reward that has none. |