IOS Simulator function introduction about Xamarin IOS development

Source: Internet
Author: User

IOS Simulator function introduction about Xamarin IOS development
IOS Simulator function introduction about Xamarin IOS development

Functions of iOS Simulator

In Figure 1.38, the model similar to a mobile phone is iOS Simulator. If you do not have an iPhone or iPad device, you can use iOS Simulator to check the program. This article is based on Xamarin iOS development practices.

IOS Simulator can simulate various functions of real iPhone, iPad, and other devices, as shown in table 1-3.

Table 1-3 iOS Simulator


Note that iOS Simulator can only implement the functions shown in Table 1-3. Other functions cannot, such as making phone calls, sending SMS messages, obtaining location data, photography, and microphones.

1. Return to the Home Page

What should I do if I want to exit the application shown in Figure 1.38 (the program designed for the user to complete a specific function is called an application? In this case, you need to select the "Hardware | Homepage" command in the menu bar and exit the application. As shown in Figure 1.41, this article is based on Xamarin iOS development practices.

 

Figure 1.41 exit the application

2. Set the application icon

As shown in figure 1.41, after exiting the application, the icon of this application is a grid-like white icon, which is the default icon of iOS. Generally, developers do not use this icon, instead, they use their own icons. To change the default icon, follow these steps:

(1) return to the HelloWorld project, double-click the Info. plist file, as shown in Figure 1.42.

 

Figure 1.42 procedure 1

(2) Find iOS 7 @ 2x under App Icons, and there is a blank area above iOS 7 @ 2x. Select it. The select file dialog box is displayed, and select an image file, click the Open button. The selected image is displayed in this blank area, as shown in Figure 1.43.

 

Figure 1.43 Procedure 2

Note: There are three blank areas in App Icons. Each blank area is different for iOS, and the size of the displayed content is also different. The displayed content must comply with the requirements of the blank area. For example, if the blank area corresponding to iOS 7 @ 2x requires 120x120 content to be displayed, the selected image must be 120x120.

Click the run button. After the running effect is displayed, exit the application and you can see the changed icon, as shown in Figure 1.44.

 

Figure 1.44 Running Effect

3. Rotate the screen

When explaining the functions of iOS Simulator, I mentioned that it can rotate the screen. How can I rotate iOS Simulator to achieve screen selection? Its implementation is actually very simple. Developers only need to hold down the Command key and a direction key at the same time, as shown in Figure 1.45.

 

Figure 1.45 Rotation

4. delete an application

To delete an application on iOS Simulator, take the following steps:

(1) Long press the icon of the application to be deleted. After a period of time, a delete icon will appear in the upper left corner of the application to be deleted, as shown in Figure 1.46.

 

Figure 1.46 procedure 1

(2) Click the delete icon. A prompt dialog box is displayed, as shown in Figure 1.47.

Figure 1.47 operation step 2 Figure 1.48 effect after deletion 3

(3) Click the Delete button to Delete the application. In this case, the effect of iOS Simulator is 1.48. This article selects Xamarin iOS development practices.

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.