Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to write the first iOS 11 application in iOS 11 development

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to write the first iOS 11 application in the development of iOS 11. It is very detailed and has a certain reference value. Friends who are interested must read it!

Write the first iOS 11 application

This section will take an iOS 11 application as an example to show developers how to use Xcode 9.0 to create a project, as well as some of the functions of iOS simulator, editing interface and so on.

Create an iOS11 project

All the files of an iOS application are under one Xcode project. Projects can help users manage code files and resource files. Here are the specific steps for creating a project using Xcode

(1) Open Xcode and pop up the Welcome to Xcode dialog box, as shown in figure 1.1.

Figure 1.1 Welcome to Xcode dialog box

(2) Select the Create a new Xcode project option and pop up the Choose a template for your new project: dialog box, as shown in figure 1.2.

Figure 1.2 Choose a template for your new project: dialog box

(3) Select the Single View App template in iOS | Application, and click the Next button to bring up the Choose options for your new project: dialog box, as shown in figure 1.3.

Figure 1.3 Choose options for your new project: dialog box

(4) fill in Product Name (project name), Organization Identifier (identifier) information and select Language (programming language) and device Devices (device), as shown in Table 1-1.

What is filled in Table 1-1

Note: the UI Tests that appears in figure 1.3 is new to Xcode 7.0. UI Tests is a Testing component that automatically tests UI and interacts with it. It can automatically click a button, view, or enter text automatically by writing code, or recording the developer's operation process and coding. (in the actual development process, as the project becomes larger and larger and there are more and more functions, it is very difficult to cover all test cases only by manual operation, especially after adding new features, the old functions have to be retested, which leads to a lot of time spent on regression testing, which produces a lot of repetitive work, some of which can be done automatically. At this point, UI Tests can help solve this problem. )

(5) when the content is completed, click the Next button to open the save location dialog box for the project, as shown in figure 1.4.

Figure 1.4 Save location dialog box

(6) Click the Create button, and a project named Hello World is created, as shown in figure 1.5.

Figure 1.5 HelloWorld Project

These are all the contents of the article "how to write the first iOS 11 application in iOS 11 development". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report