forked from acoomans/xcode-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uitableviewdelegate.m
38 lines (31 loc) · 1.6 KB
/
uitableviewdelegate.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
37
38
// UITableViewDelegate
// Table view delegate
//
// IDECodeSnippetCompletionPrefix: tableviewdelegate
// IDECodeSnippetCompletionScopes: [ClassImplementation]
// IDECodeSnippetIdentifier: 8ABC912C-BC69-43D5-94E4-83E585E671A1
// IDECodeSnippetLanguage: Xcode.SourceCodeLanguage.Objective-C
// IDECodeSnippetUserSnippet: 1
// IDECodeSnippetVersion: 2
#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.
}