Developer Area

Changeset 627 for apps

Show
Ignore:
Timestamp:
01/11/10 14:02:55 (5 years ago)
Author:
henri
Message:

Automatic redirect to single domain now handles without animation

Location:
apps/iphone/my.tel/trunk/Classes
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/my.tel/trunk/Classes/AccountViewController.h

    r612 r627  
    3535- (void)updateDomainListWithJson:(NSDictionary *)parsedJson; 
    3636- (void)getDomainList; 
    37 - (void)displayControllerForDomainAtIndex:(NSUInteger)index; 
     37- (void)displayControllerForDomainAtIndex:(NSUInteger)index animated:(BOOL)animated; 
    3838 
    3939@property (nonatomic, copy) NSString *accountLabel; 
  • apps/iphone/my.tel/trunk/Classes/AccountViewController.m

    r626 r627  
    5757        if (didDelayRedirectToSingleDomain) { 
    5858                didDelayRedirectToSingleDomain = NO; 
    59                 [self displayControllerForDomainAtIndex:0]; 
     59                [self displayControllerForDomainAtIndex:0 animated:NO]; 
    6060        } 
    6161} 
     
    152152} 
    153153 
    154 - (void)displayControllerForDomainAtIndex:(NSUInteger)index { 
     154- (void)displayControllerForDomainAtIndex:(NSUInteger)index animated:(BOOL)animated { 
    155155        NSDictionary *theDomain = [self.domainsArray objectAtIndex:index]; 
    156156    DomainViewController *dVC = [DomainViewController controllerForDomain:(NSString *)[theDomain objectForKey:@"name"]]; 
    157         [self.navigationController pushViewController:dVC animated:YES]; 
     157        [self.navigationController pushViewController:dVC animated:animated]; 
    158158}        
    159159 
     
    235235                        self.shouldRedirectToSingleDomain = NO; 
    236236                        didDelayRedirectToSingleDomain = NO; 
    237                         [self displayControllerForDomainAtIndex:indexPath.row]; 
     237                        [self displayControllerForDomainAtIndex:indexPath.row animated:YES]; 
    238238                        break; 
    239239                case kKAccountTableViewSectionEditSettings: 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us