美文网首页
纯代码创建工程

纯代码创建工程

作者: 浮生若梦_337d | 来源:发表于2018-11-16 11:48 被阅读0次

    创建一个新工程

    删除MainStoryBord LauchScreen.storyboard ViewController.m,ViewController.h 

    Targets—General将Launch Screan File设置为空

    Targets—General—Deployment info 将MainIterface 设置为空

    Assets.xcassets中添加一个LauchImage 

    将Launch Images Source 设置为Assets.xcassets中的LauchImage

    代码:

    self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen] bounds]]

    self.window.rootViewController = xxx;

    self.window.backgroundColor = [UIColor whiteColor];

     [self.window makeKeyAndVisible];

    相关文章

      网友评论

          本文标题:纯代码创建工程

          本文链接:https://www.haomeiwen.com/subject/qkqafxtx.html