objective c - popToRootViewControllerAnimated not performing correctly in context of shouldSelectViewController UITabBarControllerDelegate method -
I have established a representative for my UITabBarController and have the following delegation method: >
tab tab controller: ViewController {[self.navigationController popToRootViewControllerAnimated: Yes]; no return; }
In the method fire and context, I am in one or two tables in the table views. The I root view controller is displayed correctly, but the navigation bar does not get reset, and now There is also a "back" button in the table view from one or two levels.
(The above representative method is what I am trying to do in my app, but still is a simplified form of this problem. In my app, I need the original view when I Return to the original tab, before I'm trying to pop in the root view before leaving).
suggests a time interval problem, but it does not seem to be what is happening in my case as long as I want that I want SelectionViewController and NAV Bar "Back" button Still got messed up. This is the class from which I get all my table views. Are you sure the method is in the right context? Who corresponds to TabBarDelegate? If this is your app dialegate, then self Navigation controller may be zero If you are using a TabBar and you have more than one navigation controller, you can call the wrong controller on the popToRootViewController, try entering it: At the beginning of your method and make sure you get the address of the correct navigation controller. Posting a few more codes can be useful. @interface BasicPlaceItem Comment: UIViewController & lt; UIAlertViewDelegate, UITabBarControllerDelegate & gt; {// data members have been omitted}
NSLog (@ "% @", self-navigation controller);
Comments
Post a Comment