首页 > 移动平台 > 详细

iOS新建项目基本配置

时间:2016-05-11 11:14:23      阅读:255      评论:0      收藏:0      [点我收藏+]

项目整体同xib+代码的方式

1.调整项目文件结构

2.将资源图片导入工程

  •   General->LaunchScreen 修改

3.App名称修改

  info->Bundle name

4.删除StoryBoard 并修改 General->Main Interface删除

5.为App创建窗口

  AppDelegate.h

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // 创建窗口
    self.window = [[UIWindow alloc] init];
    self.window.frame = [UIScreen mainScreen].bounds;
    
    // 设置窗口的根控制器
    self.window.rootViewController = [[XMGTabBarController alloc] init];
    
    // 显示窗口
    [self.window makeKeyAndVisible];
    
    // 显示推送引导
    [XMGPushGuideView show];
    return YES;
}

6.项目头文件,整个项目的头文件PCH文件的建立

  • new File->other -> PCH file(文件名默认) 
  • Build Seetting - > 搜过Prefix Header ->输入PCH文件的路径(项目文件夹名称/Classes/Other/PrefixHeader.pch)

技术分享

 

iOS新建项目基本配置

原文:http://www.cnblogs.com/oshushu/p/5481028.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!