TableCell
public final class TableCell : UITableViewCell, ReusableView, NibLoadableView
Specialization of UITableViewCell that will display a SoundFont name, a Preset name, or a Tag name. Probably better would be to separate these into distinct classes, but this works for now.
-
Undocumented
Declaration
Swift
public static func favoriteTag(_ isFavorite: Bool) -> String
-
Undocumented
Declaration
Swift
@IBOutlet weak var name: UILabel!
-
Undocumented
Declaration
Swift
@IBOutlet weak var activeIndicator: UIView!
-
Text field used to edit tag names (not used for SoundFont or Preset names)
Declaration
Swift
@IBOutlet weak var tagEditor: UITextField!
-
Set if there is a problem accessing a file associated with this cell.
Declaration
Swift
var activeAlert: UIAlertController?
-
Undocumented
Declaration
Swift
override public func awakeFromNib()
-
Update cell contents for a sound font.
Declaration
Swift
public func updateForFont(name: String, kind: SoundFontKind, isSelected: Bool, isActive: Bool)
Parameters
name
the name of the sound font to show
kind
the type of sound font the cell represents
isSelected
true if the cell holds the selected sound font
isActive
true if the cell holds the sound font of the active preset
-
Update cell contents for a sound font preset.
Declaration
Swift
public func updateForPreset(name: String, isActive: Bool)
Parameters
name
the name of the preset
isActive
true if the cell holds the active preset
isEditing
true if the table view is in edit mode
-
Update cell contents for a favorite.
Declaration
Swift
public func updateForFavorite(name: String, isActive: Bool)
Parameters
name
the name of the favorite
isActive
true if the favorite is the active preset
-
Update cell contents for a tag.
Declaration
Swift
public func updateForTag(name: String, isActive: Bool)
Parameters
name
the tag name
isActive
true if cell holds the active tag
-
Make sure that the ‘reorder’ button can be seen when the table view is in edit mode
Declaration
Swift
override public func setEditing(_ editing: Bool, animated: Bool)
-
Undocumented
Declaration
Swift
override public func prepareForReuse()