xcode6新建工程

xcode6中新建空工程

(2014-10-29 13:14:44)
标签:

it

ios

分类: iOS
升级xcode6之后,直接建立Empty工程后发现,这是太坑,真的是什么都没有啊。只能换个方法了
总结如下:
1.新建一个single view application
2.打开 Info.plist(别告诉我不知道去哪里找info.plist),删除里面的 Launch screen interface file base name以及 Main Main storyboard file base name
3.删除Main.storyboard以及LaunchScreen.xib
4.在AppDelegate.m修改如下
- (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;
}
5.然后运行程序,发现在iPhone5s上的程序界面只有iPhone4上得大小了。这都是老问题了,添加图片Default-568h@2x.png。OK,全部搞定。。。
posted @ 2015-04-09 14:22  小天才努努  阅读(162)  评论(0编辑  收藏  举报