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
namethe name of the sound font to show
kindthe type of sound font the cell represents
isSelectedtrue if the cell holds the selected sound font
isActivetrue 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
namethe name of the preset
isActivetrue if the cell holds the active preset
isEditingtrue if the table view is in edit mode
-
Update cell contents for a favorite.
Declaration
Swift
public func updateForFavorite(name: String, isActive: Bool)Parameters
namethe name of the favorite
isActivetrue if the favorite is the active preset
-
Update cell contents for a tag.
Declaration
Swift
public func updateForTag(name: String, isActive: Bool)Parameters
namethe tag name
isActivetrue 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()
View on GitHub
TableCell Class Reference