xcode4.5.1、iphone5、ios6 使用记录
2012-11-05 09:54
204 查看
转载自:http://blog.sina.com.cn/s/blog_6123f9650101dmo7.html
感谢 angellixf 分享
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)
感谢 angellixf 分享
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)
相关文章推荐
- 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、iPhone、iOS5、iOS6使用技巧
- <iOS> xcode4.5.1、iphone5、ios6 兼容
- <iOS> xcode4.5.1、iphone5、ios6 兼容
- xcode4.5.1、iphone5、ios6 兼容
- [IOS开发记录]ios10下使用Xcode8.2获取gps位置信息(swift3.0)
- XCode 使用记录
- cocos2d-x-2.1使用Xcode整合ios与android开发代码 - 过程记录
- 旧工程适配iOS6和iPhone5续之第三方静态库(xcode 4.5 - symbols not found for architecture i386 (zbar))
- XCode使用记录—使用XCode自动向数据库插入测试数据
- ios CoreData的使用记录(XCode 4.2)
- iOS6和iPhone5使用第三方静态库在真机无法运行的处理
- Xcode 自带git的使用记录
- iOS6和iPhone5使用第三方静态库在真机无法运行的处理
- Xcode 6 SVN客户端初步使用记录
- Xcode 4.5( iOS6 SDK)、旧版本号cocos2d,支持iPhone5解析度