The challenge-mode landing menu.
More...
#include <ChallengeMenuView.h>
|
| (instancetype) | - initWithFrame: |
| | Builds the menu: background plate, close button, digit-artwork cache, and the table.
|
| (void) | - closeSettingMenu: |
| | The close button's action: tells the delegate to close the root menu.
|
| (void) | - tapMenu: |
| | A menu row's action.
|
| (void) | - alertSelect: |
| | Alert-button callback: begins the purchase restore when the link-purchases alert is confirmed.
|
| (void) | - showVerifyDialog: |
| | Presents the modal progress dialog, faded in, and disables interaction beneath it.
|
| (void) | - hideVerifyDialog |
| | Removes the progress dialog and re-enables interaction.
|
| (void) | - restoreFailed: |
| | Restore failed: drops the purchase delegate and hides the dialog.
|
| (void) | - restoreNothing |
| | Restore finished with nothing to restore: hides the dialog and shows the completion alert.
|
| (void) | - restoreSucceeded |
| | Restore succeeded: hides the dialog and shows the completion alert.
|
| (void) | - purchaseSucceeded: |
| | Purchase succeeded: shows a follow-up link-purchases confirmation alert.
|
| (void) | - purchaseFailed:error: |
| | Purchase failed: shows a network-error alert for a code-1 failure, then hides the dialog.
|
| (void) | - refreshView |
| | Refreshes the present badge on the first row.
|
| (void) | - setPresentNum: |
| | Draws a count on the present badge's per-digit image views, or clears them.
|
| (void) | - setPresentMark |
| | Reads the unread-present count and pushes it onto the first row's cell.
|
| (void) | - alertSelect: |
| | Sent when the user taps a button in an alert built with makeAlert:.
|
| (void) | - alertClose: |
| | Sent when a UIAlertController -based alert finishes dismissing.
|
| (void) | - purchaseFailed:error: |
| | A purchase failed.
|
|
(void) | - purchaseSucceeded: |
| | A purchase was verified.
|
The challenge-mode landing menu.
A plain UITableView of seven fixed rows sits on a centred background plate beside a close button. The first row carries a numeric badge showing the count of unread presents. Tapping the store row (tag 6) drives an in-app-purchase restore flow through PurchaseManager, guarded by a progress dialog and a confirmation alert.
◆ alertSelect:
| - (void) alertSelect: |
|
(nullable NSDictionary *) | info |
|
Alert-button callback: begins the purchase restore when the link-purchases alert is confirmed.
- Parameters
-
| info | The alert-info dictionary carrying "Tag" and "btnMessage". |
- Ghidra address:
- 0x42ff0
◆ closeSettingMenu:
| - (void) closeSettingMenu: |
|
(nullable id) | sender |
|
The close button's action: tells the delegate to close the root menu.
- Parameters
-
| sender | The tapped button. Unused. |
- Ghidra address:
- 0x42cc4
◆ hideVerifyDialog
| - (void) hideVerifyDialog |
|
|
|
Removes the progress dialog and re-enables interaction.
- Ghidra address:
- 0x4352c
◆ initWithFrame:
| - (instancetype) initWithFrame: |
|
(CGRect) | frame |
|
Builds the menu: background plate, close button, digit-artwork cache, and the table.
- Parameters
-
- Returns
- The initialised view.
- Ghidra address:
- 0x426d4
- Ghidra address:
- 0x426d4
◆ purchaseFailed:error:
| - (void) purchaseFailed: |
|
(nullable NSString *) | productID |
| error: |
|
(nullable NSError *) | error |
Purchase failed: shows a network-error alert for a code-1 failure, then hides the dialog.
- Parameters
-
| productID | The product identifier. Unused. |
| error | The failure; its code selects the alert. |
- Ghidra address:
- 0x43ae8
◆ purchaseSucceeded:
| - (void) purchaseSucceeded: |
|
(nullable NSString *) | productID |
|
Purchase succeeded: shows a follow-up link-purchases confirmation alert.
- Parameters
-
| productID | The purchased product identifier. Unused. |
- Ghidra address:
- 0x438f8
◆ refreshView
Refreshes the present badge on the first row.
Forwards to -setPresentMark.
- Ghidra address:
- 0x43cb0
- Ghidra address:
- 0x43cb0
◆ restoreFailed:
| - (void) restoreFailed: |
|
(nullable NSError *) | error |
|
Restore failed: drops the purchase delegate and hides the dialog.
- Parameters
-
| error | The failure. Unused. |
- Ghidra address:
- 0x43578
◆ restoreNothing
Restore finished with nothing to restore: hides the dialog and shows the completion alert.
- Ghidra address:
- 0x435d8
Reimplemented from <PurchaseManagerDelegate>.
◆ restoreSucceeded
| - (void) restoreSucceeded |
|
|
|
Restore succeeded: hides the dialog and shows the completion alert.
Byte-for-byte identical to -restoreNothing in the binary.
- Ghidra address:
- 0x43768
- Ghidra address:
- 0x43768
Reimplemented from <PurchaseManagerDelegate>.
◆ setPresentMark
Reads the unread-present count and pushes it onto the first row's cell.
- Ghidra address:
- 0x43e64
◆ setPresentNum:
| - (void) setPresentNum: |
|
(int) | num |
|
Draws a count on the present badge's per-digit image views, or clears them.
- Parameters
-
| num | The count. Clamped to 999; a single digit lands in the middle of the three-wide row. |
- Ghidra address:
- 0x43cbc
- Ghidra address:
- 0x43cbc
◆ showVerifyDialog:
| - (void) showVerifyDialog: |
|
(nullable NSString *) | message |
|
Presents the modal progress dialog, faded in, and disables interaction beneath it.
- Parameters
-
| message | The single-line status text. |
- Ghidra address:
- 0x43158
◆ tapMenu:
| - (void) tapMenu: |
|
(nullable id) | sender |
|
A menu row's action.
The store row (tag 6) either shows a link-purchases confirmation alert, or, when a consume receipt is already pending, drops straight into the progress dialog and refreshes the receipt. Every other row records its tag and hands it to the delegate.
- Parameters
-
| sender | The tapped button, whose tag identifies the row. |
- Ghidra address:
- 0x42d04
◆ aDelegate
The object told about close and row-selection events.
Held weakly.
- Ghidra address:
- 0x44180 (getter), 0x441a0 (setter)
The documentation for this class was generated from the following files: