iphone - popToViewController, it isn't give me any crash but, doesn't open controllview and animating so code doesn't work -


uinavigationcontroller *loginnavcon = [[uinavigationcontroller alloc] init]; loginnavcon.navigationcontroller.navigationbarhidden=yes; loginnavcon.navigationbar.barstyle = uibarstyleblack;  //i created navigationcontroller hear  pushme *p=[[pushme alloc]initwithnibname:@"pushme" bundle:[nsbundle mainbundle]]; 

//this simple controllview. there colour view

[loginnavcon pushviewcontroller:p animated:yes]; nsarray *currentviewcontrollers = [loginnavcon viewcontrollers]; nsmutablearray *vcs =  [nsmutablearray arraywitharray:currentviewcontrollers];  [loginnavcon setviewcontrollers:vcs animated:no]; [loginnavcon popviewcontrolleranimated:yes]; [loginnavcon poptoviewcontroller:p animated:yes]; 

set root with:

initwithrootviewcontroller:(uiviewcontroller *)rootviewcontroller

if pop, go vc.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -