UITableView Properties and methods

Source: Internet
Author: User

1,initWithFrame:style:

constructor, used to initialize the UITableView

UITableView *tableview =  [[UITableView Alloc]initwithframe:cgrectmake (00768  1024x768-290) Style:uitableviewstyleplain];

2,style

The style used to change UITableView.

3,-(NSInteger)numberOfRowsInSection:(NSInteger)section

is to return the number of rows of data for each group (Returns the amount of rows (table cells) in a specified section.)

4,-(NSInteger)numberOfSections

Returns the number of groupings

5,separatorstyle
Style of the delimiter

6,separatorcolor
The color of the separator

7,rowheight
Row height

8,separatoreffect
Effect of separators

9,backgroundview
Large background behind all cells

10,separatorinset
Sets whether the line is full

11,-registerNib:forCellReuseIdentifier:

< Span class= "kt" >12,tableview:cellforrowatindexpath: (uitableviewdatasource )

13,-(UITableViewHeaderFooterView *)footerViewForSection:(NSInteger)section

14,-(UITableViewHeaderFooterView *)headerViewForSection:(NSInteger)section

UITableView Properties and methods

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.