iOS development Swift-1-Xcode to create a project

1. Create a project

Double-click the Xcode App and select Create a new Xcode project.

 Choose to create an iOS common App project. Select Single View App and click Next.

 Fill in the project name, organization name, etc., and click Next.

 Select the storage path of the file and click create.

 2. Add components to the front end

Click Main, select View, find the label component in show the Object library in the lower right corner, and drag it directly to the phone model.

 Double-click the text to modify the text content.

 The property bar modifies the properties of the control.

3. Write the code and run it

 Write the code in ViewController and click the start button to run it.

 Click to open the program you just compiled.

 Run successfully!

Guess you like

Origin blog.csdn.net/LYly_B/article/details/132552957