25#import <StoreKit/StoreKit.h>
26#import <UIKit/UIKit.h>
46NS_ASSUME_NONNULL_BEGIN
58 SKStoreProductViewControllerDelegate,
86- (void)loadInitialPacklist:(NSInteger)packID;
93- (void)loadInitialPacklistWithGenre:(NSInteger)genreID;
112- (void)updatePurchaseStateForPackID:(
int)packID;
120- (void)showDetailForPackInfo:(nullable
StorePackInfo *)packInfo;
128- (void)switchToGenre:(NSUInteger)genreIndex;
169- (void)addOpenDetail:(NSInteger)genreID;
176- (void)handleTapCoverView:(nullable UITapGestureRecognizer *)recognizer;
183- (void)hideGenreSelect:(nullable
id)sender;
191- (void)handleBackButton:(nullable
id)sender;
199#pragma mark - StorePackListDelegate
209 isInitial:(BOOL)isInitial
228 errorMessage:(nullable NSString *)errorMessage;
238#pragma mark - StorePromotionViewDelegate
254- (void)storePromotionView:(
StorePromotionView *)view genreSelected:(NSUInteger)genreIndex;
256#pragma mark - StoreGenreSelectViewDelegate
263- (void)StoreGenreSelectViewDelegateGenreSelected:(NSUInteger)index;
265#pragma mark - Pack table / pack detail callbacks
278- (void)storePackTableViewShowDetail:(nullable
StorePackInfo *)packInfo;
291- (void)storePackDetailViewOpenItunesWithURL:(nullable NSURL *)url;
293#pragma mark - Detail-close / recommend tracking
317#pragma mark - EditorIDManagerDelegate
324- (void)successIDDownload:(nullable
id)manager;
332- (void)errorIDDownload:(nullable
id)manager msgStr:(nullable NSString *)msgStr;
334#pragma mark - AlertViewManagerDelegate
341- (void)alertSelect:(nonnull NSDictionary *)info;
343#pragma mark - SKStoreProductViewControllerDelegate
350- (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController;
352#pragma mark - UITableViewDataSource / UITableViewDelegate
360- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
369- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
378- (UITableViewCell *)tableView:(UITableView *)tableView
379 cellForRowAtIndexPath:(NSIndexPath *)indexPath;
388- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
397- (void)tableView:(UITableView *)tableView
398 willDisplayCell:(UITableViewCell *)cell
399 forRowAtIndexPath:(NSIndexPath *)indexPath;
407- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
409#pragma mark - View lifecycle
416- (void)viewWillAppear:(BOOL)animated;
423- (void)viewDidAppear:(BOOL)animated;
430- (void)viewWillDisappear:(BOOL)animated;
437- (void)viewDidDisappear:(BOOL)animated;
463- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The editor identifier store, backed by the keychain.
The store pack-detail page, the V2 (recommend-aware, relation-tab) variant.
A horizontally-scrolling store genre picker: a row of tappable genre banners inside a paging scroll v...
The store's pack-list data-model controller.
Holds the editor identifier and its passphrase as keychain items.
Definition EditorIDManager.h:41
Forwards every rotation decision to topViewController.
Definition RotatableNavigationController.h:26
A store pack's detail screen (version 2).
Definition StoreDetailViewControllerV2.h:89
A genre table that rotates only between the two portrait orientations.
Definition StoreGenreTableViewController.h:23
A genre heading with a title, a description, and an optional downloaded banner.
Definition StoreGenreTitleView.h:35
A spinner with a caption, swapped for a message when something fails.
Definition StoreLoadingView.h:23
The store's genre-grouped pack browser with a promotion carousel and pack detail.
Definition StoreMainViewControllerV2.h:60
BOOL shouldAutorotate()
Whether the screen rotates.
Definition StoreMainViewControllerV2.m:397
void storePackTableViewLoadMore()
Pack-table load-more callback: fetches the next page for the current genre.
Definition StoreMainViewControllerV2.m:1128
void viewDidLoad()
Gives every navigation-bar subview exclusive touch so a tap cannot fall through.
Definition StoreMainViewControllerV2.m:303
void tapNavigation()
Scrolls the pack table back to the top (the navigation-bar title tap target).
Definition StoreMainViewControllerV2.m:445
UIInterfaceOrientationMask supportedInterfaceOrientations()
The orientations the screen supports.
Definition StoreMainViewControllerV2.m:392
void didReceiveMemoryWarning()
Handles a low-memory warning.
Definition StoreMainViewControllerV2.m:373
void dealloc()
Clears the pack table's current genre and cancels any editor-ID download in flight.
Definition StoreMainViewControllerV2.m:402
void refresh()
Reloads the current genre's rows if it holds any packs.
Definition StoreMainViewControllerV2.m:438
void allReleaseDetail()
Adds a freshly-fetched additional pack to the detail stack; the shipped body is empty.
Definition StoreMainViewControllerV2.m:719
void loadView()
Builds the view: a vertical grey gradient behind a pack table, plus (on pad) a rounded pack-list cont...
Definition StoreMainViewControllerV2.m:229
void storePackDetailViewClose()
Pack-detail close callback: dismisses the pad overlay.
Definition StoreMainViewControllerV2.m:1140
void detailViewCloseNavigation()
Detail-close navigation callback: decrements the open-detail count unless the close was a recommend p...
Definition StoreMainViewControllerV2.m:1168
void storeClose()
Closes any open alert and the pad detail overlay, then dismisses this controller.
Definition StoreMainViewControllerV2.m:822
void viewDidUnload()
Releases the table, pad cover, pad detail overlay, and loading view.
Definition StoreMainViewControllerV2.m:378
void clearDetailWindow()
Fades out and dismantles every pad pack-detail overlay, keeping the root entry.
Definition StoreMainViewControllerV2.m:724
void popDetailList()
Pops the top pad pack-detail overlay off the stack, sliding the stack back.
Definition StoreMainViewControllerV2.m:673
A downloaded pack's detail card (version 2).
Definition StorePackDetailViewV2.h:45
A pack's identity, name, price, store flags, and track list.
Definition StorePackInfo.h:18
Fetches, groups, and vends the store's genre and pack lists.
Definition StorePackListController.h:71
A table of one genre's store packs with lazily-downloaded artwork and an infinite-scroll "load more" ...
Definition StorePackTableView.h:41
The store's four-tab container and shared purchase/restore/download coordinator.
Definition StoreViewControllerV2.h:45
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Told how the editor-identifier provisioning download finished.
Definition EditorIDManager.h:22
Receives the pack-detail page's navigation-close notification.
Definition StoreDetailViewControllerV2.h:72
Receives the pack-detail page's purchase, redownload, and extend-download actions.
Definition StoreDetailViewControllerV2.h:47
What a StoreGenreSelectView tells its owner when the selection changes.
Definition StoreGenreSelectView.h:20
Receives the pack-list controller's download outcomes.
Definition StorePackListController.h:36