Lan Yi Education September 18 record

Source: Internet
Author: User

2.storyboard Custom Cell

1) Create the Tableviewcontroller first, create the class that inherits the UITableViewCell

2) Associate the cell of the page in Main.storyboard with the custom cell class, fill in the class name of the custom cell with the class in the cell's custom class, and fill in the TableView cell identifier

3) in the Tableviewcontroller class, create a cell with a custom cell class and overwrite the identifier value to correspond to the identifier of the custom cell.

4) in storyboard, give the page layout, associate the control to the. h or. m of the custom cell, create the control and assign the value in the Custom cell class

The assignment is best done in the tableViewCell class (the stored data array is passed directly through the cell to the Tableviewcell class:

cell. s = self. Students [Indexpath. Row ];

and then in assignment in the Layout Child view method (this method is called before each cell is displayed)

-(void) layoutsubviews{

[Super layoutsubviews];    

}


Lan Yi Education September 18 record

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.