IPhone simulator: Adding images to album instances

Source: Internet
Author: User

IPhone SimulatorInstanceImageAdd to album is the content to be introduced in this article, we can usually useIPhone SimulatorComplete most iPhone development.SimulatorAllow on a computer, not a realIPhoneBuild, run, and test onIPhoneApplication.

Although it can simulate most iPhone environments, the simulator also has many tasks that cannot be executed, and it has several important differences with the iPhone environment.

The simulator performance is significantly improved than the real iPhone performance. From application startup time and general UI speed to available memory, all of these have been significantly improved in simulators. How good the simulator is depends on the computer you used during development. However, speed is very important to the final application, you should test the code on the real iPhone as early as possible during the development cycle to get an accurate measurement of its real performance.

The simulator provides many iPhone imitating functions:

SDK version-you can simulate code execution in multiple iPhone SDK versions.

Rotate and shake-trigger the corresponding delegate method in the View Controller to rotate and shake the simulator left and right.

Home and Lock buttons-the corresponding button functions are the same as those on the iPhone.

Memory warning-you can issue a low memory warning, which is useful when your application can well handle low memory situations.

Switch to the in-call status bar-this status bar allows us to see the status bar in an active call in the Application 2-46 shows ).

Touch-with the mouse, we can simulate a Touch, or press the Option key to simulate a double-finger Touch. For more details about the touch action in the simulator, see the discovery Gestures section in the iPhone Development Guide of the iPhone Reference Library.

The simulator cannot complete the following operations:

Without a camera, this means that you cannot simulate any image capture function of the iPhone.

Despite the option of rotating the simulator, the accelerator cannot be fully simulated.

Core Location and Map Kit always report your Location at Apple's headquarters Cupertino.

You cannot simulate more than two touch times at the same time.

The simulator does not have iPod, iTunes, Calendar, Mail, SMS, Phone, or Maps applications.

The Settings application has only a limited number of features, for example, it does not have flight mode or data Settings.

It has no proximity sensor ,:

Figure 2-46 the simulator displays ongoing calls



Figure 2-47 drag an image to the simulator

Open it on Safari

If your application needs to access any of the above features, you need to test the code on the real iPhone instead of on the simulator. Because there is no camera on the simulator, to add a photo to the Photos application, follow these steps.

Add photo:

1) Open the simulator and make sure it is on the iPhone desktop interface.

2) drag any image from the desktop to the iPhone simulator. Safari will open the image on the simulator and display it 2-47 ).

3) touch and hold the image. A dialog box will pop up, allowing you to save the image to the Photos application.

Prompt

Once an application is installed on the simulator, you can touch and hold it down to change their order or delete them-as you do on a real iPhone.

Selecting Reset Content and Settings in the iPhone Simulator menu will delete all applications and Reset the Simulator to its original configuration. However, this also deletes the default address book and photo set data. We can copy before resetting ~ /Library/ApplicationSupport/iPhone Simulator/User to back up the data.

Summary:IPhone SimulatorInstanceImageThe content added to the album has been introduced. I hope this article will help you!

Related Article

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.