TableViewDataSourceDelegate
public protocol TableViewDataSourceDelegate : AnyObject
Delegate protocol for a TableViewSource instance. Combines a NSFetchedResults object (Object
) with a UITableViewCell
instance (Cell
).
-
Undocumented
Declaration
Swift
associatedtype Entity : NSFetchRequestResult
-
Undocumented
Declaration
Swift
associatedtype Cell : UITableViewCell
-
Determine if this row can be deleted.
Declaration
Swift
func canDelete(_ index: IndexPath) -> Bool
Parameters
index
row index
Return Value
true if so
-
Delete the object at a given row.
Declaration
Swift
func delete(_ obj: Entity, at: IndexPath)
Parameters
obj
the object to delete
at
the row the object is in
-
Notification that the table was updated due to NSFetchResultsController activity
Declaration
Swift
func updated()