Several styles of IOS UITableView and UITableViewCell are described in detail _ios

Source: Internet
Author: User

Some of the styles for IOS UITableView and UITableViewCell are detailed

Today to share is a very high usage in iOS development of a control-------UITableView, these two days are using TableView to do the display of information, in writing code TableView and Tableviewcell of several styles have been unclear, Today, I studied it in detail and share with you the following:

One, the system own UITableView style has two kinds:

1.UITableViewStylePlain:

The plain style is square, full of the view.frame coordinates you give.

2.UITableViewStyleGrouped:

The grouped style is mainly displayed in rounded corners. Similar to the iphone's own Address book editing page.

Two, the system own UITableViewCell style has four kinds:

1.UITableViewCellStyleDefault:

Default Style: The left one shows a picture of the ImageView, a title Textlabel, no Detailtextlabel.

2.UITableViewCellStyleSubtitle:

Subtitle Style: The left one shows a picture of the ImageView, the top one the main title Textlabel, a subtitle detailtextlabel. The main title font is large and black, and the subtitle font is smaller below the main heading.

3.uitableviewcellstylevalue1:

Value1 Style: The left one shows the picture's ImageView, the left one main title Textlabel, the right one subtitle Detailtextlabel, the main title font is relatively black.

4.uitableviewcellstylevalue2:

Value2 Style: The left one main title Textlabel font is small, next to the right one subtitle Detailtextlabel, font large and black.

Thank you for reading, I hope to help you, thank you for your support for this site!

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.