xcode删除main.Storyboard 保持工程干净 需要注意事项
2015-09-16 17:14
531 查看
1.删除info.plist文件中 Main storyboard file base name项
该项用于引导程序打开Main的 storyboard 文件
2.在appdelegate中,
application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 函数创建window,即
self.window = [[UIWindow
alloc] initWithFrame:[[UIScreen
mainScreen] bounds]];
3.在appdelegate中,
application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 函数中,显示window
[self.window
makeKeyAndVisible]; //显示窗口
eg:
self.window = [[UIWindow
alloc] initWithFrame:[[UIScreen
mainScreen] bounds]];
MViewController * vc = [[MViewController
alloc] init];
NaviViewController * nc = [[NaviViewController
alloc] initWithRootViewController:vc];
self.window.rootViewController = nc;
[self.window
makeKeyAndVisible]; //显示窗口
该项用于引导程序打开Main的 storyboard 文件
2.在appdelegate中,
application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 函数创建window,即
self.window = [[UIWindow
alloc] initWithFrame:[[UIScreen
mainScreen] bounds]];
3.在appdelegate中,
application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 函数中,显示window
[self.window
makeKeyAndVisible]; //显示窗口
eg:
self.window = [[UIWindow
alloc] initWithFrame:[[UIScreen
mainScreen] bounds]];
MViewController * vc = [[MViewController
alloc] init];
NaviViewController * nc = [[NaviViewController
alloc] initWithRootViewController:vc];
self.window.rootViewController = nc;
[self.window
makeKeyAndVisible]; //显示窗口
相关文章推荐
- mybaits调用存储过程
- 如何新建rails项目
- 如何新建rails项目
- 关于self的使用会影响retainCount的总结
- 使用信号实现异步通知机制的例子 http://blog.csdn.net/buaa_shang/article/details/9103155
- [LeetCode] Container with most water
- cvWaitKey
- HDU 3779 Railroad
- 使用FD_CLOEXEC实现close-on-exec,关闭子进程无用文件描述符 http://blog.csdn.net/chrisniu1984/article/details/7050663
- IB Designables: Failed to update auto layout status: Failed to load designables from path (null)
- Raid 5 技术工作原理
- NSURLErrorDomain codes
- 交换机安全 802.1X、port-security、DHCP SNOOP、DAI、VACL、SPAN RSPAN
- Linux进程相关,fork,wait,waitpid,WIFEXITED
- dojo的TabContainer添加ContentPane假设closable,怎么不闭幕后予以销毁ContentPane
- 友好的 ContainerView & AutoLayout 资料推荐
- 人工智能是什么?
- 文件描述符标志和文件状态标志区别 http://blog.csdn.net/hittata/article/details/8665892
- 【英语】Bingo口语笔记(85) - ain,ane读法
- Saiku操作界面的简化