假如一个应用一进去除了登陆界面就是一个tabbarview,然后tabbarviewcontroller由五个navigationcontroller组成,每个navigationcontroller都能push。我现在要把其中一个navigationcontroller 的 push进去的页面 作为应用一启动就出现的页面,这个要怎么设置。
解决方案 »
- iPhone 的推送为什么可以在网络没有连接的情况下使用
- iphone 开发 关于UIpagecontrol 的使用问题
- mfc 中的unicode cstring字符串 移植到ios 中
- 定时提醒用户这么实现?
- 可以取到手指在屏幕的覆盖范围吗?
- 使用 UIImageJPEGRepresentation block
- VLC ------iOS中使用播放器
- IOS 读取数据库中的HTML格式内容不能正确解析
- 在ARC环境下,我的控制器pop掉的时候有些会走dealoc有些不会?
- 苹果9.0.2真机运行各种奔溃
- 为什么会出现 Undeclared selector
- iOS 图片列表缩放 uiscrollview 放大 缩小
[self setSelectedIndex:index];
index为目标navigationcontroller的索引
也可以在Appdelegate里面, 设置rootVC为那个界面。
比如:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:self.viewController];
self.window.rootViewController = nav;
[self.window makeKeyAndVisible];
return YES;
}