Last updated on 6/29/20
Understand Table Customization and Notifications
- Implement local notifications
- Implement custom reusable components
How can a cell with custom functionality be implemented?
By connecting the UI elements of the cell in the storyboard to the view controller code that correspond to the screen with table view.
UITableViewclass and connecting cell's UI components to the code of the subclass
UITableViewCellclass and connecting cell's UI components to the code of the subclass .
By implementing a protocol that a cell must comply to.
How can cell content be accommodated that is of a dynamic size?
By using maximum possible size for each element on the storyboard.
It's handled automatically by UITableView functionality.
Creating different cell prototypes for each size possibility.
Using Auto Layout, using priority of constraints to accommodate dynamic in content size variations.
Select the true statements regarding using delegation in table cell - view controller relationship:Careful, there are several correct answers.
Delegation can be used to implement communication from table view cell subclass to the view controller.
To use delegation, a table cell subclass needs to declare a delegate of a required protocol that a view controller can be assigned to.
A view controller must comply to a required cell's protocol in order to handle cell's actions.
A cell must comply to a specified protocol in order to accept a view controller as a delegate of that protocol.