Clicking on tab always open rootviewController
I am creating a tabBarApplication in which there is one tab on which camera opens.After clicking on the use tab of the imagepicker I push a new class. Now my problem is when I again press camera tab that class gets open AND I want that camera should gets opened basically my rootviewcontroller of that tab. Any s开发者_如何学Cuggestions will be appreciated. Thanks in advance!
You can implement this delegate method, when the selected view controller is camera controller, you can popToRootViewController.
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
精彩评论