Sunday, 11 August 2013

popToRootViewControllerAnimated from NSobject class giving errors

popToRootViewControllerAnimated from NSobject class giving errors

I am trying to pop all the views from my navigation stack if their is an
error. the error code is in a NSObject class so I dont have access to the
navigationcontroller. THis is the code I have tried
[self.navigationController popToRootViewControllerAnimated:FALSE];
I would like to know the best way to access and pop views from the stack
from a NSobject class.
any help would be greatly appreciated.

No comments:

Post a Comment