开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜