-
Notifications
You must be signed in to change notification settings - Fork 632
Expand file tree
/
Copy pathtvds.m
More file actions
33 lines (27 loc) · 947 Bytes
/
tvds.m
File metadata and controls
33 lines (27 loc) · 947 Bytes
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
// UITableViewDataSource
// Placeholders for the core table view data source methods
//
// Platform: All
// Language: iOS
// Completion Scope: Class Implementation
#pragma mark - UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return <# number #>;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
switch (section) {
case <#constant#>:
<#statements#>
break;
default:
return 0;
}
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (!cell) {
cell = [[UITableViewCell alloc] initWithStyle:<#(UITableViewCellStyle)#> reuseIdentifier:CellIdentifier];
}
return cell;
}