JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SettingsTwFrameSelectView.h
Go to the documentation of this file.
1
17
18#import <UIKit/UIKit.h>
19
20#import "AlertViewManager.h"
21
22NS_ASSUME_NONNULL_BEGIN
23
31@protocol SettingsTwFrameSelectViewDelegate <NSObject>
32@optional
37- (void)frameSelected:(nullable NSString *)identifier;
42- (void)frameChange:(nullable NSString *)identifier;
47@end
48
52@interface SettingsTwFrameSelectView : UIView <UITableViewDataSource,
53 UITableViewDelegate,
54 UIAlertViewDelegate,
56
66- (instancetype)initWithFrame:(CGRect)frame
67 delegate:(nullable id<SettingsTwFrameSelectViewDelegate>)delegate
68 dataSource:(nullable NSMutableArray *)dataSource;
69
76- (NSInteger)numberOfSectionsInTableView:(nonnull UITableView *)tableView;
77
85- (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
86
94- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView
95 cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
96
104- (void)tableView:(nonnull UITableView *)tableView
105 willDisplayCell:(nonnull UITableViewCell *)cell
106 forRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
107
115- (void)tableView:(nonnull UITableView *)tableView
116 didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
117
124- (void)alertSelect:(nonnull NSDictionary *)info;
125
130- (void)unlockItem;
131
136- (void)unlockSuccess;
137
142- (void)unlockFailed;
143
150- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
151
157- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
158
164- (BOOL)shouldAutorotate;
165
166@end
167
168NS_ASSUME_NONNULL_END
169
170// code: language=Objective-C
171// kate: hl Objective-C;
172// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
A modal frame-select table backed by a caller-supplied array of item rows.
Definition SettingsTwFrameSelectView.h:55
void unlockItem()
Performs the unlock of the pending item.
Definition SettingsTwFrameSelectView.m:154
void unlockFailed()
Records a failed unlock: clears the pending item.
Definition SettingsTwFrameSelectView.m:171
void unlockSuccess()
Records a successful unlock: zeroes the item's cost, tells the owner, and refreshes.
Definition SettingsTwFrameSelectView.m:159
UIInterfaceOrientationMask supportedInterfaceOrientations()
The supported interface orientations (portrait mask).
Definition SettingsTwFrameSelectView.m:184
BOOL shouldAutorotate()
Whether the view should autorotate.
Definition SettingsTwFrameSelectView.m:189
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
void refreshAccessory()
Sent when a locked row's purchase alert is cancelled, so the owner can refresh its state.