iOS Development basics Three different ways to create a table view app

Source: Internet
Author: User

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

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.