<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