#define DEF_APP (AppDelegate *)[UIApplication sharedApplication].delegate
WRLoginController *login = [[WRLoginController alloc] init];
WRNavController *nav = [[WRNavController alloc] initWithRootViewController:login];
[DEF_APP window].rootViewController=nav;
tabbar点击某一菜单两次限制系统默认跳转这个页面的根目录,如果不需要这样的设置 则需要设置代理(如手势密码等安全保护页面需要做这样的处理) ,需要遵守
UITabBarControllerDelegate 并设置代理哦
- (
BOOL
)tabBarController:(
UITabBarController
*)tabBarController shouldSelectViewController:(
UIViewController
*)viewController
{
return (viewController != tabBarController.selectedViewController);
}