xcode4.5.1、iphone5、ios6 使用出现的错误记录
2014-12-17 09:54
288 查看
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 mainScreen] bounds].size.width;
CGFloat screenHeight = [[UIScreen mainScreen] bounds].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了
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 mainScreen] bounds].size.width;
CGFloat screenHeight = [[UIScreen mainScreen] bounds].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了
相关文章推荐
- xcode4.5.1、iphone5、ios6 使用记录
- xcode4.5.1、iphone5、ios6 使用记录
- xcode4.5.1、iphone5、ios6 使用记录
- xcode4.5.1、iphone5、ios6 使用记录
- xcode4.5.1、iphone5、ios6 使用记录
- 使用git出现的错误记录
- ios使用xcode进行Archive打包上传出现的常见错误
- 无法删除尚未附加的实体-linq中使用反射删除记录出现错误,应该如何解决。
- Xcode工程使用CocoaPods管理第三方库新建工程时出现错误
- xcode4.5.1、iphone5、ios6 兼容
- 使用postMan工具测试post请求出现400错误的一个坑,记录下!
- SVN记录使用过程中出现的错误(一)
- Xcode工程使用CocoaPods管理第三方库新建工程时出现错误
- Q6:关于xcode TableView使用Nib文件出现Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath:错误
- Xcode4.5.1、iPhone、iOS5、iOS6使用技巧
- 记录使用git老是出现用户密码错误的情况
- Xcode工程使用CocoaPods管理第三方库新建工程时出现错误
- 解决 Xcode下使用公用静态库,出现的"Duplicate Symbol"错误
- <iOS> xcode4.5.1、iphone5、ios6 兼容
- SVN使用过程中出现的错误记录(一)