xcode4.5.1, Iphone5, IOS6 usage Records

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.