-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtableViewDelegate.m
36 lines (29 loc) · 1.44 KB
/
tableViewDelegate.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// UITableViewDelegate
// Table view delegate
// tableViewDelegate
// Completion Shortcut:myTable
// Platform: iOS
// Language: Objective-C
// Completion Scope: Function or Method
#pragma mark - UITableViewDelegate
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
return <#row height#>;
}
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
// Tells the delegate the table view is about to draw a cell for a particular row.
}
- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath {
// Tells the delegate that the user tapped the accessory (disclosure) view associated with a given row.
}
- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Tells the delegate that a specified row is about to be selected.
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Tells the delegate that the specified row is now selected.
}
- (NSIndexPath *)tableView:(UITableView *)tableView willDeselectRowAtIndexPath:(NSIndexPath *)indexPath {
// Tells the delegate that a specified row is about to be deselected.
}
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath {
// Tells the delegate that the specified row is now deselected.
}