iphone - pushViewController call from uiview -
let me explain problem:
i have uiviewcontroller 2 uiviews. have button in 1 of uiview , call methode uiviewcontroller.
[controller actionmainsettings]; and methode:
-(void)actionmainsettings{ mainsettings *maincontroller = [[mainsettings alloc] initwithnibname:@"mainsettings" bundle:nil]; [self.navigationcontroller pushviewcontroller:maincontroller animated:yes]; [[self navigationcontroller] setnavigationbarhidden:yes animated:no]; [maincontroller release]; } mainsettings uivewcontroller...
and nothing happen...
when put button in uiviewcontroller ([self.view addsubview:buttonsettings];) it's ok want put in uiview.
can explain me happen?
thx
i not sure try super.navigationcontroller instead of self.
also, of code, assume it's settings view. recommend use [self presentmodalview:yourview animated:yes]. can @ uiview documentation range of animations.
Comments
Post a Comment