- Timestamp:
- 01/17/10 15:38:32 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
apps/iphone/my.tel/trunk/Classes/DomainViewController.m
r658 r663 12 12 13 13 @interface DomainViewController (PrivateMethods) 14 - (NS UInteger)sectionForIndex:(NSUInteger)sectionIndex;14 - (NSInteger)sectionForIndex:(NSInteger)sectionIndex; 15 15 @end 16 16 … … 103 103 #pragma mark Table view methods 104 104 105 - (NS UInteger)sectionForIndex:(NSUInteger)sectionIndex {105 - (NSInteger)sectionForIndex:(NSInteger)sectionIndex { 106 106 // maps the proper section index based on editing mode 107 107 switch (sectionIndex) { … … 146 146 147 147 - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { 148 if (section == [self sectionForIndex:kKDomainTableViewSectionFolders]) 148 if (section == [self sectionForIndex:kKDomainTableViewSectionFolders]) { 149 if ([self tableView:tableView numberOfRowsInSection:section] == 0) 150 return nil; 149 151 return @"Subfolders"; 152 } 150 153 if (section == [self sectionForIndex:kKDomainTableViewSectionInfo]) 151 154 return @"Information";








