ios - Navigation controller popViewControllerAnimated : yes is not working as expected -
i using following line of code:
[self.navigationcontroller popviewcontrolleranimated:yes];
but not behaving in ios 7 doing in ios 6.some times not pop controller while pressing button 2- 3 times in succession.
resulting in abrupt behaviour in navigation bar , deallocating controller showing same on ui .
when press on controller results crash since controller deallocated.
[self.navigationcontroller poptorootviewcontrolleranimated:yes];
this method navigate root of navigationcontroller.
you can check viewcontroller hierachy following code.
nslog(@"%@",self.navigationcontroller.viewcontrollers);
Comments
Post a Comment