博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
upgrade to iOS7,how to remove stroyboard?
阅读量:5884 次
发布时间:2019-06-19

本文共 1310 字,大约阅读时间需要 4 分钟。

  hot3.png

RT,now the new iOS version is 7! and if you use XCode 5 to create a new project,it will make you use ARC and StroyBoard in default,so how to change this setting?

- For ARC,you can click "Build Settings" in XCode,and then search "ARC", you can find a item Named "Apple LLVM 5.0 - Language - Objective C",please set the ARC to NO

- For remove storyboard,you can delete the files,and then create a new Controller with Xib file,and then add the code in the AppDelegate.m's launch method:

self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];    MainViewController *mainViewController = [[MainViewController alloc] initWithNibName:@"MainViewController" bundle:nil];    self.window.rootViewController = mainViewController;    [mainViewController release];        [self.window makeKeyAndVisible];    // Override point for customization after application launch.    return YES;
then there is a important point need to pay attention to,that is you should delete the "Main Interface" in the General tab."delete" means clear the text in the field.

If you don't clear the main interface,and you use the device to debug,maybe your iPhone will black screen and can not response your cmd until it is shut down and then open.

Thanks,

Blues

转载于:https://my.oschina.net/u/913344/blog/172483

你可能感兴趣的文章
eclipse智能配置
查看>>
安装Scrapy遇到的问题处理
查看>>
个人作业——软件产品案例分析
查看>>
Java学习:方法重载的使用规则
查看>>
ASP.NET MVC 防止CSRF攻击
查看>>
EF:无法检查模型兼容性,因为数据库不包含模型元数据。
查看>>
0和5
查看>>
C# WinFrom一些技术小结
查看>>
hdu5001 Walk 概率DP
查看>>
模拟select控件&&显示单击的坐标&&用户按下键盘,显示keyCode
查看>>
Mac-OSX下Ruby更新
查看>>
jsp九个内置对象
查看>>
[Python笔记][第一章Python基础]
查看>>
Bloomberg SEP 12.x 迁移小记
查看>>
生日小助手V1.1发布了——拥有更整齐的信息列表
查看>>
代理模式
查看>>
Qt 学习(1)
查看>>
MFC CEdit改变字体大小的方法
查看>>
java 中文数字排序方法
查看>>
centos 关于防火墙的命令
查看>>