IOS Study Notes (11): basic introduction to UITableView in IOS development (1)

Source: Internet
Author: User

IOS learning notes (11) IOS development of the table view (UITableView) Basic Introduction (I) (blog address: http://blog.csdn.net/developer_jiangqq) reprinted please note the address.

Author: hmjiangqq

Email: jiangqqlmj@163.com

(1): basic concepts of UITableView

1. In IOS development, table views are widely used and popularized. Therefore, it is very important to master the usage of table views. Generally, data is displayed.

We will select the table view, such as the address book and some data lists.

2. You can choose to create a table view or a table View Controller.

(2) The basic UITableView style is as follows (1: UITableViewStylePlain (normal table view), 2: UITableViewStyleGroup (group table view )):


(3) Structure of the UITableView table view: first, let's look at a design drawing:

Based on the figure above, we will analyze the structure of the table View:

1: table header view (table header view). The top view of the table view is used to display information of the table view, such as the drop-down and refresh information above.

2: table footer view. The bottom view of the table view is used to display partial information of the table view, such as loading more information.

3: cell ). It is the unit view of each row in the table view, and the unit chart of one row

4: selection ). It is composed of multiple cells and has the beginning and End of the node, just as the Group Start header and the End of the Group End

5: node header. Section header, which describes the information of the Section, such as Group Start.

6: footer. End of the Section, which describes the section information or some declaration information. For example, Group End.

(4) classification of UITableView table views

In IOS, table views are mainly divided into two categories (common table views and grouped table views). The following describes these two types of table views.

1: Common table view: it is mainly used for general tables. The most common is that we do not know how much data needs to be displayed.

2: grouping table view: it is mainly used to divide some data into different groups for display. See the figure below. The left side is the normal table view and the right side is the group table view;

In addition, the graph on the left is indexed (efghijk...). You can also add the selection column and search column.

3: provide you with a selection list. Using the Select Table view, you can replace the check box control.

The search bar is shown below: in this way, you can use the search bar to filter and search in many cells. The search bar is usually placed in the header.

We need to slide the UITableView to the top to see the search bar.

The preceding section describes the basic concepts, basic styles, structures, and classifications of table views in the table view (UITableView). The next section introduces how to implement the table view and gain an in-depth understanding.


Related Article

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.