[The problem of displaying UITableView grouped data through the plist file supplements the Objective-C language]

1. Just now we demonstrated how to use UITableView to display grouped data through the plist file.

1. Steps:

1) The first step is to load the data in the plist file through lazy loading,

2) In the second step, drag UITableView and set its data source object, which is our controller

3) In the third step, the controller complies with the data source protocol and implements our five data source methods,

1> How many groups to return, numberOfSectionsInTableView

2> Return how many rows in each group, numberOfRowsInSection

3> Return what kind of cells are displayed in each row of each group, cellForRowAtIndexPath

4> Return the group title, titleForHeaderInSection

5> return group description, titleForFooterInSection

Guess you like

Origin blog.csdn.net/madoca/article/details/130147406