PresetsTableViewManager
final class PresetsTableViewManager : NSObject
extension PresetsTableViewManager: UITableViewDataSource
extension PresetsTableViewManager: UITableViewDelegate
extension PresetsTableViewManager: UISearchBarDelegate
Data source and delegate for the Patches UITableView. This is one of the most complicated managers and it should be broken up into smaller components. There are three four areas of functionality:
- table view drawing and selecting
- row visibility editing
- searching
- row swiping
-
init(viewController:
activePatchManager: selectedSoundFontManager: soundFonts: favorites: keyboard: infoBar: ) Construct a new patches table view manager.
Declaration
Swift
init(viewController: PresetsTableViewController, activePatchManager: ActivePatchManager, selectedSoundFontManager: SelectedSoundFontManager, soundFonts: SoundFonts, favorites: Favorites, keyboard: Keyboard?, infoBar: InfoBar)
Parameters
viewController
the view controller that holds this manager
activePatchManager
the active preset manager
selectedSoundFontManager
the selected sound font manager
soundFonts
the sound fonts collection manager
favorites
the favorites collection manager
keyboard
the optional keyboard view manager
infoBar
the info bar manager
-
Undocumented
Declaration
Swift
func numberOfSections(in tableView: UITableView) -> Int
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
-
Undocumented
Declaration
Swift
func sectionIndexTitles(for tableView: UITableView) -> [String]?
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, sectionForSectionIndexTitle title: String, at index: Int) -> Int
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String?
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCell.EditingStyle
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath)
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration?
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration?
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int)
-
Notification from searchBar that the text value changed. NOTE: this is not invoked when programmatically set.
Declaration
Swift
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String)
Parameters
searchBar
the UISearchBar where the change took place
searchText
the current search term
-
Undocumented
Declaration
Swift
func performChanges(soundFont: LegacySoundFont) -> [IndexPath]
-
Undocumented
Declaration
Swift
public func hideSearchBar(animated: Bool)
-
Undocumented
Declaration
Swift
func selectActive(animated: Bool)