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)