JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StorePackTableView.h
Go to the documentation of this file.
1
21
22#import <UIKit/UIKit.h>
23
25#import "StorePackView.h"
26
27NS_ASSUME_NONNULL_BEGIN
28
37@interface StorePackTableView : UITableView <UITableViewDataSource,
38 UITableViewDelegate,
39 UIScrollViewDelegate,
40 NSCacheDelegate,
42
49@property(nonatomic, strong, nullable) StorePackListGenre *currentGenre;
50
58@property(nonatomic, weak, nullable) UIViewController *viewController;
59
69- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style;
70
77- (void)stopLoadingMore:(BOOL)reload;
78
83- (void)clearArtworkCache;
84
91- (void)downloadImageSync:(nullable NSArray *)arg;
92
99- (void)storePackViewSelected:(nullable id)packView;
100
107- (NSInteger)numPackRows;
108
116- (void)setupPackView:(nullable id)view index:(NSUInteger)index;
117
125- (UITableViewCell *)tableView:(UITableView *)tableView
126 cellForRowAtIndexPath:(NSIndexPath *)indexPath;
127
134- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
135
144- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
145
154- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
155
164- (void)tableView:(UITableView *)tableView
165 willDisplayCell:(UITableViewCell *)cell
166 forRowAtIndexPath:(NSIndexPath *)indexPath;
167
175- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
176
183- (void)selectLoadMoreCell:(nullable UITableViewCell *)cell;
184
191- (void)scrollViewDidScroll:(UIScrollView *)scrollView;
192
199- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView;
200
208- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;
209
216- (void)cache:(NSCache *)cache willEvictObject:(nullable id)obj;
217
218@end
219
220NS_ASSUME_NONNULL_END
221
222// code: language=Objective-C
223// kate: hl Objective-C;
224// vim: set ft=objc :
A store genre model describing one pack-list genre: its display name, identifier, banner artwork and ...
One pack tile in the store's pack grid.
A store model for a single pack-list genre.
Definition StorePackListGenre.h:25
A table of one genre's store packs with lazily-downloaded artwork and an infinite-scroll "load more" ...
Definition StorePackTableView.h:41
StorePackListGenre * currentGenre
The genre whose packs this table lists.
Definition StorePackTableView.h:49
void clearArtworkCache()
Empties the artwork cache, cancels every queued download, and clears the in-flight list.
Definition StorePackTableView.m:154
NSInteger numPackRows()
The number of pack rows: the genre's pack count on iPhone, or half of it (rounded up) on iPad where e...
Definition StorePackTableView.m:236
UIViewController * viewController
The owning controller told when a pack is tapped, a page must be fetched, or the list has scrolled.
Definition StorePackTableView.h:58
What a StorePackView tells its owner.
Definition StorePackView.h:20