Developer Area

Changeset 663 for apps

Show
Ignore:
Timestamp:
01/17/10 15:38:32 (5 years ago)
Author:
henri
Message:

Subfolder section title won't display if no subfolders present

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/my.tel/trunk/Classes/DomainViewController.m

    r658 r663  
    1212 
    1313@interface DomainViewController (PrivateMethods) 
    14 - (NSUInteger)sectionForIndex:(NSUInteger)sectionIndex; 
     14- (NSInteger)sectionForIndex:(NSInteger)sectionIndex; 
    1515@end 
    1616 
     
    103103#pragma mark Table view methods 
    104104 
    105 - (NSUInteger)sectionForIndex:(NSUInteger)sectionIndex { 
     105- (NSInteger)sectionForIndex:(NSInteger)sectionIndex { 
    106106        // maps the proper section index based on editing mode 
    107107        switch (sectionIndex) { 
     
    146146 
    147147- (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; 
    149151                return @"Subfolders"; 
     152        } 
    150153        if (section == [self sectionForIndex:kKDomainTableViewSectionInfo]) 
    151154                return @"Information"; 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us