A modal accessory-select table backed by a caller-supplied array of item rows.
More...
#include <SettingsTwAccSelectView.h>
A modal accessory-select table backed by a caller-supplied array of item rows.
◆ alertSelect:
| - (void) alertSelect: |
|
(nonnull NSDictionary *) | info |
|
AlertViewManager delegate callback: the tapped button routes to the unlock or to a cancel that clears the pending item.
- Parameters
-
| info | The button info dictionary, carrying the tapped button index under "btnMessage" . |
- Ghidra address:
- 0xe3c3c
Reimplemented from <AlertViewManagerDelegate>.
◆ initWithFrame:delegate:dataSource:
| - (instancetype) initWithFrame: |
|
(CGRect) | frame |
| delegate: |
|
(nullable id< SettingsTwAccSelectViewDelegate >) | delegate |
| dataSource: |
|
(nullable NSMutableArray *) | dataSource |
Builds the table (filling the whole view) and records the owner and the item array.
- Parameters
-
| frame | The view's frame; the table is laid out at the frame's own size. |
| delegate | The owner told when rows are chosen, changed, or a purchase is cancelled. |
| dataSource | The mutable array of item rows, each a mutable positional array. |
- Returns
- The initialised view.
- Ghidra address:
- 0xe34bc
◆ numberOfSectionsInTableView:
| - (NSInteger) numberOfSectionsInTableView: |
|
(nonnull UITableView *) | tableView |
|
The number of sections in the table.
- Parameters
-
| tableView | The table posing the question. |
- Returns
- Always
1 .
- Ghidra address:
- 0xe3638
◆ shouldAutorotate
| - (BOOL) shouldAutorotate |
|
|
|
Whether the view should autorotate.
- Returns
- Always
YES .
- Ghidra address:
- 0xe3e78
- Ghidra address:
- 0xe3e78
◆ shouldAutorotateToInterfaceOrientation:
| - (BOOL) shouldAutorotateToInterfaceOrientation: |
|
(UIInterfaceOrientation) | interfaceOrientation |
|
Whether the view may rotate to an interface orientation (portrait orientations only).
- Parameters
-
| interfaceOrientation | The candidate orientation. |
- Returns
YES for portrait and portrait-upside-down.
- Ghidra address:
- 0xe3e60
- Ghidra address:
- 0xe3e60
◆ supportedInterfaceOrientations
| - (UIInterfaceOrientationMask) supportedInterfaceOrientations |
|
|
|
The supported interface orientations (portrait mask).
- Returns
UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown .
- Ghidra address:
- 0xe3e70
- Ghidra address:
- 0xe3e70
◆ tableView:cellForRowAtIndexPath:
| - (nonnull UITableViewCell *) tableView: |
|
(nonnull UITableView *) | tableView |
| cellForRowAtIndexPath: |
|
(nonnull NSIndexPath *) | indexPath |
Builds (or reuses) the accessory cell for a row and shows a checkmark on the equipped one.
- Parameters
-
| tableView | The table posing the question. |
| indexPath | The row's index path. |
- Returns
- The configured cell.
- Ghidra address:
- 0xe3664
◆ tableView:didSelectRowAtIndexPath:
| - (void) tableView: |
|
(nonnull UITableView *) | tableView |
| didSelectRowAtIndexPath: |
|
(nonnull NSIndexPath *) | indexPath |
Handles a row tap: a free row is selected immediately; a costed row raises the unlock confirmation alert.
- Parameters
-
| tableView | The table. |
| indexPath | The tapped row's index path. |
- Ghidra address:
- 0xe3858
◆ tableView:heightForRowAtIndexPath:
| - (CGFloat) tableView: |
|
(nonnull UITableView *) | tableView |
| heightForRowAtIndexPath: |
|
(nonnull NSIndexPath *) | indexPath |
The height of a row.
- Parameters
-
| tableView | The table posing the question. |
| indexPath | The row's index path. |
- Returns
- A fixed row height.
- Ghidra address:
- 0xe3658
◆ tableView:numberOfRowsInSection:
| - (NSInteger) tableView: |
|
(nonnull UITableView *) | tableView |
| numberOfRowsInSection: |
|
(NSInteger) | section |
The number of rows in a section.
- Parameters
-
| tableView | The table posing the question. |
| section | The section index. |
- Returns
- The count of the item array.
- Ghidra address:
- 0xe3640
◆ tableView:willDisplayCell:forRowAtIndexPath:
| - (void) tableView: |
|
(nonnull UITableView *) | tableView |
| willDisplayCell: |
|
(nonnull UITableViewCell *) | cell |
| forRowAtIndexPath: |
|
(nonnull NSIndexPath *) | indexPath |
Called before a cell is displayed.
This implementation does nothing.
- Parameters
-
| tableView | The table. |
| cell | The cell about to be displayed. |
| indexPath | The row's index path. |
- Ghidra address:
- 0xe3854
◆ unlockFailed
Records a failed unlock: clears the pending item.
- Ghidra address:
- 0xe3e4c
◆ unlockItem
Performs the unlock of the pending item.
The shipped body is empty.
- Ghidra address:
- 0xe3d18
- Ghidra address:
- 0xe3d18
◆ unlockSuccess
Records a successful unlock: zeroes the item's cost, tells the owner, and refreshes.
- Ghidra address:
- 0xe3d1c
The documentation for this class was generated from the following files: