The iOS Simulator is a helper tool that can be used when developing a program on the iOS platform under Mac. iOS Simulator is part of the Xcode, Xcode is Apple's own iOS development program that can be downloaded for free!
The IOS Simulator is located in the/developer/platforms/iphonesimulator.platform/developer/applications folder. Typically, you do not need to start iOS simulator-it automatically starts when you run (or debug) an application Xcode. Xcode will automatically install the application on the iOS simulator.
IOS Simulator is not an emulator
IOS Simulator is an emulator, but not an emulator. What is the difference between the two? The simulator mimics the behavior of the actual device. Iphonesimulator will imitate the real behavior of the actual Ios/ipad device. But the simulator itself uses various libraries on the MAC, such as QuickTime, to render the effect consistent with the actual iphone. In addition, the application tested on the emulator compiles to x86 code, which is the byte code that the emulator understands. The actual iphone device uses arm code.
iOS supported (analog) devices
My iOS 5.1 simulator here has 4 supported devices:
That
Ipad
IPad (Retina)
Iphone
IPhone (Retina)
How to open the iOS emulator
Xcode iOS Emulator (to debug the current program) automatically when you compile it
When you debug the iOS program in Xcode, tap the corresponding run:
Xcode will compile the current iOS project, and after the compilation succeeds, it will automatically and call the iOS emulator and run the corresponding compiled program:
Note: Your current project, using the corresponding simulator needs to be set to the corresponding simulator.
For example, my project here is for the iphone, so set it for the iphone 5.1 Simulator:
Manually open the iOS simulator
If necessary, of course, you can manually open the corresponding iOS simulator.
Through Xcode->open Developer Tool->ios Simulator:
You can open the corresponding iOS emulator.
About the interface in the iOS emulator
A total of three interfaces:
Here is the third interface: application
This is the second interface: the iphone main function interface