Navigationcontroller, why isnt this working?
        Posted  
        
            by f0rz
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by f0rz
        
        
        
        Published on 2010-04-19T10:11:25Z
        Indexed on 
            2010/04/19
            10:13 UTC
        
        
        Read the original article
        Hit count: 247
        
Hi !
Why wont this work?
View1   loads View2.
In view2:  
- (void) goToView {
  View3 *plainText = [[Tabview_testViewController alloc]
                          initWithNibName:@"View3" bundle:nil];
       [self.navigationController pushViewController:plainText animated: NO];
       [plainText release]; 
  }
- (void)viewDidLoad {
         [self goToView]; 
         [super viewDidLoad];
  }
This will not trigger navigationController to pushView, but if I add a button and setAction (goToView) it works perfectly. What kind of problem do I missing here?
Regards
© Stack Overflow or respective owner