16#import <UIKit/UIKit.h>
24NS_ASSUME_NONNULL_BEGIN
41@protocol MusicPlaylistViewControllerDelegate <NSObject>
66 playlistSelected:(NSInteger)selection
67 selectedMusicID:(NSUInteger)musicID;
99@property(nonatomic, weak, nullable) id<MusicPlaylistViewControllerDelegate>
delegate;
110@property(nonatomic, strong, nullable) UIBarButtonItem *
barBtnNew;
124- (instancetype)initWithStyle:(UITableViewStyle)style;
133- (CGFloat)tableView:(nonnull UITableView *)tableView heightForFooterInSection:(NSInteger)section;
142- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView
143 cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
151- (NSInteger)numberOfSectionsInTableView:(nonnull UITableView *)tableView;
160- (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
169- (void)tableView:(nonnull UITableView *)tableView
170 commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
171 forRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
182- (BOOL)tableView:(nonnull UITableView *)tableView
183 canEditRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
192- (nullable NSIndexPath *)tableView:(nonnull UITableView *)tableView
193 willSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
202- (void)tableView:(nonnull UITableView *)tableView
203 didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
212- (void)tableView:(nonnull UITableView *)tableView
213 willDisplayCell:(nonnull UITableViewCell *)cell
214 forRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
224- (void)selectLevel:(nullable NSNumber *)level;
231- (void)tapNewPlaylist:(nullable
id)sender;
244- (void)tapClose:(nullable
id)sender;
254- (void)musicPlaylistCreateWithName:(nullable NSString *)name;
261- (void)viewWillAppear:(BOOL)animated;
268- (void)viewDidAppear:(BOOL)animated;
275- (void)viewWillDisappear:(BOOL)animated;
282- (void)viewDidDisappear:(BOOL)animated;
296- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
The screen for naming a new music playlist: a single rounded-rect text field with a navigation bar ca...
A table listing the ten difficulty levels used to filter a music playlist.
The model behind the music-select "playlists" feature: an ordered set of user playlists,...
MusicPlaylistListMode
Which of the two list layouts the controller shows.
Definition MusicPlaylistViewController.h:33
@ MusicPlaylistListModeAddToPlaylist
Pick a playlist to add the current song to.
Definition MusicPlaylistViewController.h:35
@ MusicPlaylistListModePlaylists
Browse the filters, levels, and playlists.
Definition MusicPlaylistViewController.h:34
Manages the user's music playlists, persisting them to a property-list file.
Definition MusicPlaylistManager.h:25
A table view controller managing the user's music playlists.
Definition MusicPlaylistViewController.h:85
UIInterfaceOrientationMask supportedInterfaceOrientations()
The orientations the screen allows.
Definition MusicPlaylistViewController.m:513
BOOL shouldAutorotate()
Whether the screen rotates at all.
Definition MusicPlaylistViewController.m:518
void viewDidLoad()
Disables exclusive-touch propagation across the navigation bar's subviews.
Definition MusicPlaylistViewController.m:105
MusicPlaylistListMode listMode
Which list layout the table shows.
Definition MusicPlaylistViewController.m:154
void tapLevelSelect()
Empty action; the level filter is instead reached through row selection.
Definition MusicPlaylistViewController.m:483
MusicPlaylistManager * playlistManager
The model backing the playlists list.
Definition MusicPlaylistViewController.h:107
NSUInteger selectedMusicID
The music identifier the selections apply to.
Definition MusicPlaylistViewController.h:96
UIBarButtonItem * barBtnNew
The right-hand "new playlist" bar button item.
Definition MusicPlaylistViewController.h:110
id< MusicPlaylistViewControllerDelegate > delegate
The object told about selections and close events.
Definition MusicPlaylistViewController.h:99
Receives the name entered on a MusicPlaylistCreateViewController .
Definition MusicPlaylistCreateViewController.h:21
Notified when the user picks a difficulty level from the list.
Definition MusicPlaylistLevelSelector.h:22