IOS UITableView Nsindexpath Properties Explained

Source: Internet
Author: User

IOS UITableView Nsindexpath Properties Explained

To view UITableView's help documentation we will note that UITableView has two delegate: DataSource and delegate respectively.

  DataSource is a Uitableviewdatasource type that provides display data (UITableViewCell) primarily for UITableView, specifying the type of edit operation supported by UITableViewCell (Insert,delete and reordering), and the corresponding data update operation according to the user's operation, if the data is not more operational to correct the update, may cause the display exception, even crush.

  delegate is a uitableviewdelegate type that provides an optional method to control the selection of TableView, to specify the display of the header and tail of a section, and to assist in the removal and sequencing of cells.

When it comes to uitableview, it is necessary to say nsindexpath. UITableView declares a nsindexpath category, which is used primarily to identify the current cell's position in TableView, which has section and row two attributes that identify the current cell in the first sections, the latter substituting The first line of the table in the section.

UITableView can only have one column of data (cell), and only support vertical sliding, when the first time the creation of a good tablview, we need to call its Reloaddata method, forcing the refresh once, so that the TableView data update to the latest state.

IOS UITableView Nsindexpath Properties Explained

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.