码迷,mamicode.com
首页 > 其他好文 > 详细

工程问题

时间:2014-10-09 20:39:18      阅读:106      评论:0      收藏:0      [点我收藏+]

标签:基础工程

1.修改工程名:直接选中工程名点一下,就像修改名称夹名称一样简单了。


2.导入旧工程解决xcode4.5以后模拟器屏幕不旋转的问题

if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0)

    self.window.rootViewController = navigationCtrl;

else

    [self.window addSubview:navigationCtrl.view];



3.支持iPhone5:添加Retina 4 launch image“Default-568h@2x.png”

图片尺寸:

 

  Default.png   320x480

     Default@2x.png  640x960

     Default-568h@2x.png  640x1136


4.Icon新增:Icon-72@2x.png,Icon-Small-50@2x.png;



5.判断是否为iphone5

 

CGFloat screenWidth = [[UIScreen mainScreenbounds].size.width;

        CGFloat screenHeight = [[UIScreen mainScreenbounds].size.height;

        if ((screenWidth==568)||(screenHeight==568)) {

            isiPhone5 = YES;

        }


6.iphone5宽高:320*568

CGFloat screenWidth = [[UIScreen mainScreen] bounds].size.width;

 CGFloat screenHeight = [[UIScreen mainScreen] bounds].size.height;

7.打开iphone5模拟器:硬件-》设备-》iPhone(Retina 4-inch) 





8.编绎旧工程出错


1.Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1


  解决方法:在Build Setting  搜索框中搜索pch,找到了Prefix Header,把后面的Debug等等全都删除,就ok了



工程问题

标签:基础工程

原文地址:http://9453125.blog.51cto.com/9443125/1561593

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!