presentModalViewController and UINavigationController
来源:互联网 发布:内网怎么访问阿里云 编辑:程序博客网 时间:2024/06/06 05:07
今天遇到一个问题,直到现在还是有点不明白,看不懂,记录下来
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; [NSThread sleepForTimeInterval:.1]; //设置启动时长 // [[Global sharedGlobal] setupAtLaunching]; [self.window addSubview:[Global sharedGlobal].mainViewController.view]; //注意这里添加的视图 // presentModalViewController UILoginViewController* loginViewController=[[UILoginViewController alloc] initFromNib]; [[Global sharedGlobal].mainViewController presentModalViewController:loginViewController animated:NO]; navigationController = [[UINavigationController alloc] initWithRootViewController:loginViewController]; navigationController.navigationBarHidden=YES; [self.window addSubview:navigationController.view]; [loginViewController release]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; return YES;}
- presentModalViewController and UINavigationController
- 在presentModalViewController中使用UINavigationController
- 在presentModalViewController中使用UINavigationController
- UITabBarController的使用方法、 UINavigationController的使用方法、 presentModalViewController的使用方法
- presentModalViewController
- UINavigationController and viewWillAppear / viewDidAppear
- UINavigationController and viewWillAppear / viewDidAppear
- UINavigationController
- UINavigationController
- UINavigationController
- UINavigationController
- UINavigationController
- UINavigationController
- UINavigationController
- UINavigationController
- UINavigationController
- UINavigationController
- UINavigationController
- 《计算机教育》专题报道:培养兴趣,渔之以愉
- apache + tomcat 集群 负载均衡 session 同步
- 关于iOS中block如何实现的探究
- 如何将12位手机号转换为6字节数组BCD码?
- 项目总结-01
- presentModalViewController and UINavigationController
- JS操作JSON总结
- 安装Eclipse反编译插件
- Qt入门-layout布局
- android 获取系统语言
- QT与OGRE做3D地图编辑器
- 子网掩码的计算
- 免费图标素材:47套最新的超棒免费图标集
- Linux下安装apach教程(转载)