UITableView Flashcards

1
Q

Example of 2 messages sent to an UITableViewDelegate

A

tableView:heightForRowAtIndexPath:

tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Example of 2 messages sent to an UITableViewDataSource

A

tableView:cellForRowAtIndexPath:

numberOfSectionsInTableView:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

UITableViewController roles are?

A
  1. View controller
  2. Data source
  3. Delegate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

UITableViewController’s view is an instance of?

A

UITableView

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does UITableViewController automatically loads a UITableView?

A

UITableViewController inherits from UIViewController the view method, that loads an UITableView (by calling loadView)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Each row of UITableView is an instance of?

A

UITableViewCell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When does UITableViewController set its dataSource and delegate variables?

A

when it creates his view

How well did you know this?
1
Not at all
2
3
4
5
Perfectly