如果在Xcode6中创建空工程, 删除冗余信息
2024-10-19 06:21:26
http://stackoverflow.com/questions/25783282/how-to-create-an-empty-application-in-xcode-6-without-storyboard?rq=1
There is no option in XCode6
for directly creating an Empty Application as in XCode5
and earlier. But still we can create application without Storyboard
in XCode6
by following these steps:
- Create an
Single View Application
withXCode6
- Remove
Main.storyboard
andLaunchScreen.xib
(select them, right-click, and choose to either remove them from the project, or delete them completely). - Remove "Main storyboard file base name" and "Launch screen interface file base name" entries in
Info.plist
file. Open AppDelegate.m, and edit applicationDidFinishLaunchingWithOptions so that it looks like this:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
最新文章
- [codevs 2800]送外卖
- Openfire Strophe开发中文乱码问题
- 学习笔记:iPhone终极指南、手机端、浏览器各种规范
- httpclient介绍
- mybatis中的变量#与$
- Jersey(1.19.1) - Rules of Injection
- css样式继承 第7节
- 【细说Java】Java封箱拆箱的一些问题
- SQL通用函数-nvl-nvl2 -nvlif-nullif-coalesce-decode-case
- aes加解密 Illegal key size
- eos 创建两对的公钥和私钥, 钱包,交易所转账到主网,主网到交易所
- 9;XHTML 多媒体
- [转帖]tar高级教程:增量备份、定时备份、网络备份
- Unity3D热更新LuaFramework入门实战
- 手把手教你从零搭建Python数据分析环境
- C# 判断程序是否已经在运行
- PHP入门1
- PAT 天梯赛 L1-011. A-B 【水】
- 买手机时几GB+几GB啥意思
- C Primer Plus学习笔记(二)- 数据和C