Play iOS simulator

Source: Internet
Author: User

This article mainly introduces several interesting little features of the iOS simulator.

The iOS simulator, as its name implies, simulates an iOS device. For a bitter program ape, an iOS simulator can most of the time top more than 10 real machines.

Open Xcode and select "Xcode->open Developer tool->ios Simulator" in the menu to open the emulator. Or you can create a new single view project, run the program directly, the simulator will open automatically.

Figure 1. iOS simulator

Check the simulator to see its menu bar "Hardware", there are several projects, this article is mainly about these things.

Device

This will show you the iOS device emulator you currently have. If you have a different SDK, you will have a different device emulator.

Figure 2. Choose a different type of iOS simulator

Since Xcode has been upgraded to 6, the location of the device in the system has become very complex, and for development it is almost to the point. Want to put a file in the corresponding device folder The big trouble, I don't want to talk about it.

To download more emulators, you can open Xcode, and in its menu "xcode->preferences", open the "Downloads" tab, there are different emulators to download. You can also download different developer documentation here. If the download simulator is slow, you can download it here.

Rotate

The "Rotate" pair should have "Rotate left" and "Rotate Right", corresponding shortcut keys are "command+ direction" and "command+ direction". These two shortcut keys should be the most used. During the development process, these two shortcuts can be used to quickly switch the screen of the simulator to see the changes of the interface.

Shake Gesture

As the name implies, simulate shaking a shake operation. This setting is very thoughtful for an emulator. Fortunately you don't have to pick up the whole Mac and shake it.

Home

The corresponding is the home button on the iOS device, the shortcut key is "command+shift+h", proficiency will also be used frequently.

Lock

Lock the iOS device screen. Home and lock are all on iOS real-world operations, and it's very necessary to move these to the simulator.

Toggle In-call Status Bar

This feature is very powerful, strong to heinous, I also recently discovered this wonderful feature. That's the status bar when you simulate a call.

Figure 3. Analog call

Indeed, the interface changes when the iphone calls, which is where testers need to test.

Keyboard

Xcode6 above, the simulator default is to put the keyboard, that is, the default hardware keyboard. In this menu option, you can choose whether to pick up the hardware keyboard, and actively shrink the keyboard.

Toggle Slow animations in frontmost App

These are some of the main features of hardware, which are common in the development process. Another interesting little feature is the "Debug" menu "Toggle Slow animations in frontmost App", or slow motion. You can try this, push a new viewcontroller in a Navigationcontroller, select the menu before push, and push, and you'll see the push move slows down. In the same way, for most animations, this feature can be used to reduce the speed of their movement, which is fun.

Zoom gesture

Finally, the simulator also has a zoom function, is to move the mouse to the simulator, and then hold down the "alt" button, you will find the simulator more than two round patterns, representing the two fingers. You can simulate the zoom gesture by holding down ALT and dragging with the mouse.

Play iOS simulator

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.