zoukankan      html  css  js  c++  java
  • xcode6中新建空工程

    升级xcode6之后,直接建立Empty工程后发现,这是太坑,真的是什么都没有啊。只能换个方法了

    总结如下:

    1.新建一个single view application

    2.打开 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

    {

        self.window = [[UIWindowalloc] initWithFrame:[[UIScreenmainScreen] bounds]];

        self.window.backgroundColor = [UIColorwhiteColor];

        [self.windowmakeKeyAndVisible];

        

        LXMainViewController *mainVC = [[LXMainViewControlleralloc]init];

        self.window.rootViewController = mainVC;

        

        returnYES;

    }

    5.然后运行程序,发现在iPhone5s上的程序界面只有iPhone4上得大小了。添加图片Default-568h@2x.png。

  • 相关阅读:
    centos 用户管理
    rsync 实验
    文件共享和传输
    PAT 1109 Group Photo
    PAT 1108 Finding Average
    PAT 1107 Social Clusters
    PAT 1106 Lowest Price in Supply Chain
    PAT 1105 Spiral Matrix
    PAT 1104 Sum of Number Segments
    PAT 1103 Integer Factorization
  • 原文地址:https://www.cnblogs.com/lkjson/p/4337745.html
Copyright © 2011-2022 走看看