Link Address: http://blog.sina.com.cn/s/blog_6123f9650101dmo7.html
1. Modify the project name: Select the project name directly, just as easy as changing the name folder name.
2. Import old project solve xcode4.5 after the simulator screen does not rotate problem
if ([[[Uidevice Currentdevice] systemversion] Floatvalue] >= 6.0)
Self.window.rootViewController = Navigationctrl;
Else
[Self.window AddSubview:navigationCtrl.view];
3. Support IPhone5: Add Retina 4 launch image "[email protected]"
Image size:
Default.png 320x480
[Email protected] 640x960
[Email protected] 640x1136
4.Icon added: [email protected],[email protected];
5. Determine if it is iphone5
CGFloat screenwidth = [[UIScreen mainscreen] bounds].size.width;
CGFloat screenheight = [[UIScreen mainscreen] bounds].size.height;
if ((screenwidth==568) | | | (screenheight==568)) {
IsiPhone5 = YES;
}
6.iphone5 width Height: 320*568cgfloat screenwidth = [[UIScreen mainscreen] bounds].size.width; CGFloat screenheight = [[UIScreen mainscreen] bounds].size.height; 7. Open the Iphone5 Simulator: hardware-"Devices-" iPhone (Retina 4-inch) 8.error in compiling Yi Old project 1.Command/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang failed with Exit code 1Workaround: Search in the Build Setting search boxPCH, found the prefix Header, the back of the debug and so on all deleted, OK
xcode4.5.1, Iphone5, IOS6 usage Records