20#import <UIKit/UIKit.h>
24NS_ASSUME_NONNULL_BEGIN
33@protocol SettingsTwDegreeSelectViewDelegate <NSObject>
39- (void)degreeSelected:(nullable NSString *)display;
44- (void)degreeChange:(nullable NSString *)display;
67- (instancetype)initWithFrame:(CGRect)frame
68 delegate:(nullable
id<SettingsTwDegreeSelectViewDelegate>)delegate
69 dataSource:(nullable NSMutableArray *)dataSource;
77- (NSInteger)numberOfSectionsInTableView:(nonnull UITableView *)tableView;
86- (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
95- (CGFloat)tableView:(nonnull UITableView *)tableView
96 heightForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
105- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView
106 cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
115- (void)tableView:(nonnull UITableView *)tableView
116 willDisplayCell:(nonnull UITableViewCell *)cell
117 forRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
126- (void)tableView:(nonnull UITableView *)tableView
127 didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
135- (void)alertSelect:(nonnull NSDictionary *)info;
161- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
A modal degree-select table backed by a caller-supplied array of item rows.
Definition SettingsTwDegreeSelectView.h:57
void unlockFailed()
Records a failed unlock: clears the pending item.
Definition SettingsTwDegreeSelectView.m:187
UIInterfaceOrientationMask supportedInterfaceOrientations()
The supported interface orientations (portrait mask).
Definition SettingsTwDegreeSelectView.m:200
BOOL shouldAutorotate()
Whether the view should autorotate.
Definition SettingsTwDegreeSelectView.m:205
void unlockSuccess()
Records a successful unlock: zeroes the item's cost, tells the owner, and refreshes.
Definition SettingsTwDegreeSelectView.m:173
void unlockItem()
Performs the unlock of the pending item.
Definition SettingsTwDegreeSelectView.m:168
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
void refreshDegree()
Sent when a locked row's purchase alert is cancelled, so the owner can refresh its state.