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.