A tappable tile showing one pack's artwork, name, price and status markers.
More...
#include <StoreRecommendPackView.h>
|
| id | delegate |
| | The object told when the tile is tapped.
|
| UIImageView * | artworkView |
| | The tile's artwork view.
|
| NSUInteger | index |
| | The tile's position in the recommendation list, as last given to -loadPackInfo:index: .
|
A tappable tile showing one pack's artwork, name, price and status markers.
◆ handleTap:
| - (void) handleTap: |
|
(id) | sender |
|
The tile's tap handler.
- Parameters
-
| sender | The gesture recogniser. Unused — the delegate is handed the tile. |
- Ghidra address:
- 0x145650
- Ghidra address:
- 0x145650
◆ initWithFrame:
| - (instancetype) initWithFrame: |
|
(CGRect) | frame |
|
Builds the tile's seven subviews.
The tap recogniser goes on the background rather than on the tile itself. The comment and price labels are sized from the "Purchased" badge's fitted frame, so both move with it.
- Parameters
-
- Returns
- The initialised tile.
- Ghidra address:
- 0x1449fc
- Ghidra address:
- 0x1449fc
◆ loadPackInfo:index:
| - (void) loadPackInfo: |
|
(nullable StorePackInfo *) | packInfo |
| index: |
|
(NSUInteger) | index |
Fills the tile in from a pack and records its position.
A pack whose purchase is merely pending shows as owned, since the purchased marker is driven by -isPurchased: or -isPending: .
- Parameters
-
| packInfo | The pack to show. |
| index | The tile's position, stored for the delegate to read back. |
- Ghidra address:
- 0x145704
◆ setBgImage:
| - (void) setBgImage: |
|
(nullable UIImage *) | bgImg |
|
Sets the tile's background artwork.
- Parameters
-
- Ghidra address:
- 0x145638
◆ artworkView
| - (UIImageView*) artworkView |
|
readwritenonatomicstrong |
The tile's artwork view.
- Ghidra address:
- 0x145940 (getter)
◆ delegate
The object told when the tile is tapped.
Weak and untyped in the metadata, so the dispatch goes through -respondsToSelector: rather than a declared conformance. StoreRecommendTableCell nils this in its -dealloc.
- Ghidra address:
- 0x145964 (getter)
◆ index
The tile's position in the recommendation list, as last given to -loadPackInfo:index: .
- Ghidra address:
- 0x145930 (getter)
The documentation for this class was generated from the following files: