Wavelet says Swift's third season building the swift UI Vacation list study notes

Source: Internet
Author: User

<1> First Scenario:

1. Localized Interface Simplified Chinese culture

Supporting Files-info.plist

Localization native development Region local programming area

Select China so that the UI component of the system will become the Chinese style.

2. Text Box placeholder

Property: Placeholder

Another thing to accumulate: Clear Button

Appears while editing: this (clear) button appears when you type

3. Automatic layout

Add text box top, left and right spacing constraints

Distance to the left:

Distance from top of:

Distance to the right:

Distance from bottom of:

<2> A second scenario:

1. After adding a table View controller from the control library, because the first interface to open the app is the list of vacation listings, you should:

Select this is initial view controller (initial scene controllers), and the position of the clipping head will appear before the table View Controller:

This exchange of scene order is complete.

< You can actually drag the cut directly to the view controller you want as the opening scene, before you try >

2. Static data

Set Table View property contents-static cell style-basic (with label)

Dynamic prototypes is how you set up the table in your program code. Static cells.

Then select the table View cell and find the Stye in the properties to change to the basic base style:

Then double-click on the display of the title, you can enter text, such as "Beijing", and then if you want to copy the list, click Option, and then select a list box, drag and drop to copy a list.

<3> transitions between scenes-transitions (segue)

Then double-click the navigation bar to enter text:

Find this bar Button item component, and you will know that this component can be added to the navigation bar in a slightly English way:
Then drag onto the navigation bar:

Then select the style and select Add,item to display the + symbol:

Let's run a little bit first to see:

Wavelet says Swift's third season building the swift UI Vacation list study notes

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.