Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 35 lines (27 sloc) 0.852 kB
0ccd8cb @mattt Converting snippets into new format with YAML front-matter
mattt authored
1 ---
2 title: "UITableViewDataSource"
3 summary: "Placeholders for required UITableViewDataSource delegate methods"
4 platform: iOS
5 completion-scope: Class Implementation
6 ---
a599469 @mattt Importing first batch of snippets from Xcode
mattt authored
7
8 #pragma mark - UITableViewDataSource
9
10 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
585e025 @mattt Fixing formatting of tokens
mattt authored
11 return <#number#>;
a599469 @mattt Importing first batch of snippets from Xcode
mattt authored
12 }
13
81a1b55 @mattt Updating UITableViewDataSource snippet to use modern conventions
mattt authored
14 - (NSInteger)tableView:(UITableView *)tableView
15 numberOfRowsInSection:(NSInteger)section
16 {
639ff49 @weekwood add Semicolon
weekwood authored
17 return <#number#>;
a599469 @mattt Importing first batch of snippets from Xcode
mattt authored
18 }
19
81a1b55 @mattt Updating UITableViewDataSource snippet to use modern conventions
mattt authored
20 - (UITableViewCell *)tableView:(UITableView *)tableView
21 cellForRowAtIndexPath:(NSIndexPath *)indexPath
22 {
23 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:<#reuseIdentifier#> forIndexPath:<#indexPath#>];
24
e34c8e0 @andrewmichaelson Added -configureCell:forRowAtIndexPath: message to -tableView:cellFor…
andrewmichaelson authored
25 [self configureCell:cell forRowAtIndexPath:indexPath];
81a1b55 @mattt Updating UITableViewDataSource snippet to use modern conventions
mattt authored
26
a599469 @mattt Importing first batch of snippets from Xcode
mattt authored
27 return cell;
28 }
5aac330 @mattt Adding NSFetchedResultsControllerDelegate snippet
mattt authored
29
81a1b55 @mattt Updating UITableViewDataSource snippet to use modern conventions
mattt authored
30 - (void)configureCell:(UITableViewCell *)cell
31 forRowAtIndexPath:(NSIndexPath *)indexPath
32 {
585e025 @mattt Fixing formatting of tokens
mattt authored
33 <#statements#>
639ff49 @weekwood add Semicolon
weekwood authored
34 }
Something went wrong with that request. Please try again.