xcode4.5.1、iphone5、ios6&…
2014-01-23 17:32
127 查看
好多也用过,收藏一下。原文地址:使用记录">xcode4.5.1、iphone5、ios6 使用记录作者:angellixf1.修改工程名:直接选中工程名点一下,就像修改名称夹名称一样简单了。
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了
相关文章推荐
- <iOS> xcode4.5.1、iphone5、ios6 兼容
- <iOS> 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 使用记录
- xcode4.5.1、iphone5、ios6 使用记录
- xcode4.5.1、iphone5、ios6 使用记录
- xcode4.5.1、iphone5、ios6 使用记录
- ios学习--XCode打包.a静态库文件&正确导出.h头文件
- Xcode 运行项目时候选择模拟器位置处显示"My Mac" 的处理
- xcode 中GDP常用命令
- Xcode4.5.1破解iOS免证书开发真机调试与ipa发布
- 初窥Xcode4 -- Xcode4主题样…
- 【从零学习openCV】IOS7下的openCV开发起步(Xcode5.1.1&openCV2.49)
- 【从零学习openCV】IOS7下的openCV开发起步(Xcode5.1.1&openCV2.49)
- Xcode 8.0 新特性 & Swift 3.0 增加的变动
- &lt;转&gt;RestKit在iOS项目中的使用,包含xcode配置说明
- 查看xcode&instruments版本以及版本切换
- 仔细使用ZXing2.1 在XCode4.5.1+ios5