In iOS, one of the most common controls is table View, which you can also understand as a list. In wirelessly is a ListView. Often used in news clients, mailboxes, memos and other applications. But implementing this list item on iOS is easier than Android. The following three methods are used to implement a table view interface.
(1) Template Master-detail application
This is a template that can be selected when creating an iOS app, which is already very well integrated with the Table view control, which can already be implemented by adding an item, deleting an item, and displaying the information. We can develop it on this basis.
。
。
。
。
(2) Table View Controller creates a blank interface
Drag a table View Controller into the Main.storyboard, which is a separate, blank interface.
..
.
You can see that there is a prototype Cells on it, which is an item in the list, which is called an item in Android. The effect of the run is as follows, a blank list:
。
(3) Using the Table view Control
You can drag a table view control onto a blank storyboard that was originally generated, and the table view you dragged into is no Cell, that is, there are no list items, you can drag into a table view Cell, There will be an example (2) in the prototype cell effect.
。
。
Of course the number of cells can also be set by prototype cells on the right.
。
。
Of course, no data is added to the table view at this point, and the effect is a blank list.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
iOS Development basics Three different ways to create a table view app