A table view controller managing the user's music playlists.
More...
#include <MusicPlaylistViewController.h>
A table view controller managing the user's music playlists.
◆ initWithStyle:
| - (instancetype) initWithStyle: |
|
(UITableViewStyle) | style |
|
Builds the controller, its content size, and its navigation bar.
Sets a fixed preferred content size, installs the localized "NewPL" right bar button wired to -tapNewPlaylist: (tinted when the running system supports it), and on the phone idiom adds a localized "Close" left bar button wired to -tapClose: . Starts in Playlists mode and seeds the persisted level filter.
- Parameters
-
| style | The table style forwarded to the superclass. |
- Returns
- The initialised controller, or
nil if [super initWithStyle:] fails.
- Ghidra address:
- 0x15ca34
- Ghidra address:
- 0x15ca34
◆ musicPlaylistCreateWithName:
| - (void) musicPlaylistCreateWithName: |
|
(nullable NSString *) | name |
|
◆ numberOfSectionsInTableView:
| - (NSInteger) numberOfSectionsInTableView: |
|
(nonnull UITableView *) | tableView |
|
Number of sections: three in Playlists mode, one otherwise.
- Parameters
-
| tableView | The table asking. |
- Returns
- Three in
Playlists mode, one otherwise.
- Ghidra address:
- 0x15dcd0
◆ selectLevel:
| - (void) selectLevel: |
|
(nullable NSNumber *) | level |
|
◆ shouldAutorotate
| - (BOOL) shouldAutorotate |
|
|
|
Whether the screen rotates at all.
- Returns
- Always
YES .
- Ghidra address:
- 0x15ed68
- Ghidra address:
- 0x15ed68
◆ shouldAutorotateToInterfaceOrientation:
| - (BOOL) shouldAutorotateToInterfaceOrientation: |
|
(UIInterfaceOrientation) | interfaceOrientation |
|
Reports that only the two portrait orientations are supported.
- Parameters
-
| interfaceOrientation | The orientation being asked about. |
- Returns
YES for either portrait orientation.
- Ghidra address:
- 0x15ed50
- Ghidra address:
- 0x15ed50
◆ supportedInterfaceOrientations
| - (UIInterfaceOrientationMask) supportedInterfaceOrientations |
|
|
|
The orientations the screen allows.
- Returns
- Both portrait orientations.
- Ghidra address:
- 0x15ed60
- Ghidra address:
- 0x15ed60
◆ tableView:canEditRowAtIndexPath:
| - (BOOL) tableView: |
|
(nonnull UITableView *) | tableView |
| canEditRowAtIndexPath: |
|
(nonnull NSIndexPath *) | indexPath |
Whether a row may be edited (swipe-deleted).
Only playlist rows in Playlists mode are editable, and never the currently-selected playlist.
- Parameters
-
| tableView | The table asking. |
| indexPath | The row's index path. |
- Returns
- YES for an editable playlist row, NO otherwise.
- Ghidra address:
- 0x15df6c
◆ tableView:cellForRowAtIndexPath:
| - (nonnull UITableViewCell *) tableView: |
|
(nonnull UITableView *) | tableView |
| cellForRowAtIndexPath: |
|
(nonnull NSIndexPath *) | indexPath |
Builds a cell for a filter, level, or playlist row.
- Parameters
-
| tableView | The table view. |
| indexPath | The row's index path. |
- Returns
- The configured cell.
- Ghidra address:
- 0x15d10c
◆ tableView:commitEditingStyle:forRowAtIndexPath:
| - (void) tableView: |
|
(nonnull UITableView *) | tableView |
| commitEditingStyle: |
|
(UITableViewCellEditingStyle) | editingStyle |
| forRowAtIndexPath: |
|
(nonnull NSIndexPath *) | indexPath |
Deletes a playlist when its row is swiped.
- Parameters
-
| tableView | The table asking. |
| editingStyle | The editing action committed. |
| indexPath | The row's index path. |
- Ghidra address:
- 0x15dd9c
◆ tableView:didSelectRowAtIndexPath:
| - (void) tableView: |
|
(nonnull UITableView *) | tableView |
| didSelectRowAtIndexPath: |
|
(nonnull NSIndexPath *) | indexPath |
Routes a selection: a filter or playlist notifies the delegate, the level row pushes the level selector.
- Parameters
-
| tableView | The table sending the message. |
| indexPath | The tapped row's index path. |
- Ghidra address:
- 0x15e2ec
◆ tableView:heightForFooterInSection:
| - (CGFloat) tableView: |
|
(nonnull UITableView *) | tableView |
| heightForFooterInSection: |
|
(NSInteger) | section |
Height for a section's footer.
- Parameters
-
| tableView | The table view. |
| section | The section index. |
- Returns
4 for the level-filter section in Playlists mode, otherwise 0 .
- Ghidra address:
- 0x15d0a8
◆ tableView:numberOfRowsInSection:
| - (NSInteger) tableView: |
|
(nonnull UITableView *) | tableView |
| numberOfRowsInSection: |
|
(NSInteger) | section |
Number of rows in a section.
- Parameters
-
| tableView | The table asking. |
| section | The section asked about. |
- Returns
- The row count for that section.
- Ghidra address:
- 0x15dcfc
◆ tableView:willDisplayCell:forRowAtIndexPath:
| - (void) tableView: |
|
(nonnull UITableView *) | tableView |
| willDisplayCell: |
|
(nonnull UITableViewCell *) | cell |
| forRowAtIndexPath: |
|
(nonnull NSIndexPath *) | indexPath |
Whitens a cell's background, tinting the level row when a level filter is active.
- Parameters
-
| tableView | The table asking. |
| cell | The cell about to be drawn. |
| indexPath | The row's index path. |
- Ghidra address:
- 0x15e4fc
◆ tableView:willSelectRowAtIndexPath:
| - (nullable NSIndexPath *) tableView: |
|
(nonnull UITableView *) | tableView |
| willSelectRowAtIndexPath: |
|
(nonnull NSIndexPath *) | indexPath |
Blocks selection of an already-active row.
- Parameters
-
| tableView | The table asking. |
| indexPath | The row about to be selected. |
- Returns
- The index path when selectable,
nil otherwise.
- Ghidra address:
- 0x15e094
◆ tapClose:
| - (void) tapClose: |
|
(nullable id) | sender |
|
Tells the delegate the screen should close.
- Parameters
-
| sender | The Close bar button, unused. |
- Ghidra address:
- 0x15e7d4
◆ tapLevelSelect
Empty action; the level filter is instead reached through row selection.
- Ghidra address:
- 0x15e7d0
◆ tapNewPlaylist:
| - (void) tapNewPlaylist: |
|
(nullable id) | sender |
|
Pushes the create-playlist screen.
- Parameters
-
| sender | The bar button, unused. |
- Ghidra address:
- 0x15e720
◆ viewDidAppear:
| - (void) viewDidAppear: |
|
(BOOL) | animated |
|
Chains up to super .
- Parameters
-
| animated | Whether the appearance was animated. |
- Ghidra address:
- 0x15ea10
- Ghidra address:
- 0x15ea10
◆ viewDidDisappear:
| - (void) viewDidDisappear: |
|
(BOOL) | animated |
|
Chains up to super .
- Parameters
-
| animated | Whether the disappearance was animated. |
- Ghidra address:
- 0x15ea80
- Ghidra address:
- 0x15ea80
◆ viewDidLoad
Disables exclusive-touch propagation across the navigation bar's subviews.
- Ghidra address:
- 0x15eab8
◆ viewWillAppear:
| - (void) viewWillAppear: |
|
(BOOL) | animated |
|
Chains up to super .
- Parameters
-
| animated | Whether the appearance is animated. |
- Ghidra address:
- 0x15e9d8
- Ghidra address:
- 0x15e9d8
◆ viewWillDisappear:
| - (void) viewWillDisappear: |
|
(BOOL) | animated |
|
Chains up to super .
- Parameters
-
| animated | Whether the disappearance is animated. |
- Ghidra address:
- 0x15ea48
- Ghidra address:
- 0x15ea48
◆ delegate
The object told about selections and close events.
Held weakly.
◆ listMode
Which list layout the table shows.
The setter also updates the navigation title.
- Ghidra address:
- 0x15cf58
◆ playlistManager
The model backing the playlists list.
The setter enables the "new playlist" bar button only while a manager is present and below the playlist cap.
The documentation for this class was generated from the following files: