Xcode 6 simulator loss problem (minor problem), xcode loss

Source: Internet
Author: User

Xcode 6 simulator loss problem (minor problem), xcode loss

Today, when I opened Xcode and selected the simulator, I found that there were only "iPhone 5" and "iPhone 5s" left. Where did the original "iPad Air" and "iPhone 4s" go? Lost?

Don't worry, open "Xcode-> Window-> Devices" in sequence, and you will find that the original "iPhone 5" and "iPhone 5s" lie here, and click "+" in the lower left corner, you can add a frequently used device. You can also click "-" to remove a device that is not frequently used.



In this case, the lost simulator can be created and imported!


Why is the sdk missing in the xcode6 beta5 simulator?

You can use the latest and the next version to represent the SDK, but you can run the simulator to check whether the running program is normal. You can download the document only from the Components tab.

Xcode iphone5 simulator Problems

IOS developers need to provide a 3.5-inch screen and a 4-inch screen. Therefore, the program must automatically detect what the User device is.
I often treat these two items separately during development:
Define IS_IPHONE5 in AppDelegate first
# Define IS_IPHONE5 ([[UIScreen mainScreen] bounds]. size. height-568 )? NO: YES)
After
If (IS_IPHONE5 ){

}
Else {

}

Similarly, I usually use two storyboards when using storyboard. However, you can use constrain to limit a simple layout. If you have any questions, continue to ask.

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.