ios5 - pushViewController not working in iOS 5 but working fine in iOS6 -


i have navigation controller pushes new viewcontroller. working fine in ios6, not working fine in ios5. btw, running on iphone simulator.

my code looks this:

myviewcontroller *newview = [[myviewcontroller alloc] initwithnibname:@"myviewcontroller"                                                                           bundle:nil]; [[self navigationcontroller] pushviewcontroller:newview animated:yes]; 

tried well:

myviewcontroller *newview = [[myviewcontroller alloc] initwithnibname:@"myviewcontroller"                                                                           bundle:[nsbundle mainbundle]]; [[self navigationcontroller] pushviewcontroller:newview animated:yes]; 

not working.

tried solution in this: pushviewcontroller not working on ios 5 (ok on ios 6).

not showing new view controller either, need guidance on this. thanks.

can try line test if there problem nib file or not.

 myviewcontroller *newview = [[myviewcontroller alloc] init]; [[self navigationcontroller] pushviewcontroller:newview animated:yes]; 

in - (void)viewdidload write self.view.backgroundcolor = [uicolor redcolor];

just test whether or not viewcontroller pushing. if able push view controller using method. there might issue nib file.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -