|
JubeatPlus 3.9.11
|
A menu row whose badge draws its number from per-digit artwork. More...
#include <ChallengeMenuViewCell.h>


Instance Methods | |
| (instancetype) | - initWithStyle:reuseIdentifier: |
| Clears the button, goes clear-backed and drops the selection style. | |
| (void) | - setBgImage:numImage: |
| Builds the row's button, badge plate and digit views. | |
| (void) | - setNumber: |
| Shows a number on the badge, or hides the badge entirely. | |
| (void) | - tapMenu: |
| The row button's action. | |
Properties | |
| id | aDelegate |
| Weak and untyped, per the metadata. | |
A menu row whose badge draws its number from per-digit artwork.
The row owns two fixed arrays of image views, one two digits wide and one three, and picks between them by magnitude rather than resizing either.
| - (instancetype) initWithStyle: | (UITableViewCellStyle) | style | |
| reuseIdentifier: | (nullable NSString *) | reuseIdentifier |
Clears the button, goes clear-backed and drops the selection style.
Builds no subviews.
| style | The cell style. |
| reuseIdentifier | The reuse identifier, or nil for a non-reusable cell. |
| - (void) setBgImage: | (nullable UIImage *) | bgImg | |
| numImage: | (nullable NSArray *) | numImg |
Builds the row's button, badge plate and digit views.
Builds everything on the first call only; later calls just re-apply the tag, the target and the background. The digit views are laid out to centre exactly, three or two at a time.
| bgImg | The row's background artwork. |
| numImg | The digit artwork, indexed 0 to 9. |
| - (void) setNumber: | (int) | number |
Shows a number on the badge, or hides the badge entirely.
Zero hides the plate and returns. One to nine goes in the middle slot of the three-wide row rather than in the two-wide one. Ten to ninety-nine uses the two-wide row, and anything larger uses the three-wide row. Values above 999 are clamped to 999 rather than rejected.
| number | The count to show. |
| - (void) tapMenu: | (id) | sender |
The row button's action.
Does nothing at all — the body is a single return.
Not dead code: -setBgImage:numImage: targets the button at aDelegate rather than at self, so with a nil delegate UIKit walks the responder chain to this cell and this method absorbs the tap.
| sender | The tapped button. Unused. |
|
readwritenonatomicweak |
Weak and untyped, per the metadata.
Nothing this class defines reads it.