总结如下:
1.创建:Single View Application
2.找到Supporting Files文件,打开 Info.plist,
删除 Launch screen interface file base name
以及 Main Main storyboard file base name
3.删除LaunchScreen.xib
以及Main.storyboard
4.在AppDelegate.m修改代码
5.运行
注意:
发现在iPhone5s上的程序界面只有iPhone4上得大小了。
1.创建:Single View Application
2.找到Supporting Files文件,打开 Info.plist,
删除 Launch screen interface file base name
以及 Main Main storyboard file base name
3.删除LaunchScreen.xib
以及Main.storyboard
4.在AppDelegate.m修改代码
5.运行
注意:
发现在iPhone5s上的程序界面只有iPhone4上得大小了。
添加图片Default-568h@2x.png可以解决。
//需要修改代码
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
ViewController *vc = [[ViewController alloc]init];
[self.window setRootViewController:vc];
[self.window makeKeyAndVisible];
return YES;
}
相关信息:
Xcode 6 正式版如何创建一个Empty Application
http://jingyan.baidu.com/article/2a138328bd73f2074b134f6d.html