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

A purchase row: a tappable plate carrying the cube count, a label plate, and two labels. More...

#include <CubePurchaseListViewCell.h>

Inheritance diagram for CubePurchaseListViewCell:
Collaboration diagram for CubePurchaseListViewCell:

Instance Methods

(instancetype) - initWithStyle:reuseIdentifier:tag:
 Builds the row's subviews at the metrics for the current device idiom.
(void) - setBgImage:info:cache:aDelegate:
 Fills the row in, loading digit artwork through a caller-owned cache.

Properties

id aDelegate
 The object the row's button targets.
UIButton * addBtn
 Declared readonly and never assigned by any method this class defines, so always nil.

Detailed Description

A purchase row: a tappable plate carrying the cube count, a label plate, and two labels.

The cube count is drawn digit by digit from per-digit artwork rather than as text, which is why the row owns a fixed five-element array of image views.

Method Documentation

◆ initWithStyle:reuseIdentifier:tag:

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

Builds the row's subviews at the metrics for the current device idiom.

Parameters
stylePassed straight through to UITableViewCell.
reuseIdentifierPassed straight through to UITableViewCell.
tagSet on the row's button so a tap can be traced back to its row.
Returns
The initialised cell.
Ghidra address:
0x63dc0

◆ setBgImage:info:cache:aDelegate:

- (void) setBgImage: (nullable UIImage *) bgImg
info: (nullable CubePurchaseInfo *) info
cache: (nullable NSMutableDictionary *) cache
aDelegate: (nullable id) aDelegate 

Fills the row in, loading digit artwork through a caller-owned cache.

Parameters
bgImgThe plate drawn behind the whole row, set as the button's normal background.
infoThe pack whose count, price and description the row shows.
cacheA dictionary the row reads and writes, keyed by digit number and by the plate's resource name, so the artwork is loaded once across all rows.
aDelegateThe object the button targets. Used and discarded, not retained in the ivar.
Ghidra address:
0x64328

Property Documentation

◆ addBtn

- (UIButton*) addBtn
readnonatomicassign

Declared readonly and never assigned by any method this class defines, so always nil.

Ghidra address:
0x64728 (getter)

◆ aDelegate

- (id) aDelegate
readwritenonatomicweak

The object the row's button targets.

Weak, per the W attribute in the runtime metadata, and genuinely untyped — the metadata encodes it as a bare @ with no protocol. It expects tapPurchaseBtn: .

Note that -setBgImage:info:cache:aDelegate: does not write this ivar; it uses its own aDelegate argument as the button's target and discards it.

Ghidra address:
0x646f4 (getter)

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