Compared with other views, uitableview is widely used. It works with uitableview to use cell. You can customize cells, including content styles, in programs.
Uitableview requires a data source)
<Uitableviewdatasource> declare in viewcontroller
When doing tableview, you need to have the Controller act as a proxy.
Call a method in the Controller to operate tableview
Common Methods:
-(Nsinterger) Counts // sets the number of groups-(nsinterger) numberofrowsinsection // sets the number of rows in each group-(uitableviewcell *) tableview :( uitableview *) tableview cellforrowatindexpath :( nsindexpath //
-(Nsstring *) tableview :( uitableview *) tableview titleforheaderinsection :( nsinteger) Section // sets the header title displayed in the section group.
-(Nsstring *) tableview :( uitableview *) tableview titleforfooterinsection :( nsinteger) Section // sets the tail title of the section group.
-(Cgfloat) tableview :( uitableview *) tableview heightforrowatindexpath :( nsindexpath *) indexpath // you can specify the Row Height.
Dark Horse programmer-6. uitableview