TableView has 2 species of Style:uitableviewstyleplain and uitableviewstylegrouped.
But QQ friends List of TableView give people feel seems to be 2 style effects have, but tableview can not achieve 2 kinds of effects exist simultaneously.
In fact, just use the plain this style, just in the cell number display to do a processing (personal opinion, hope can help people who need ...)
When the button in the group header view of the cell in the Address Book is normal, the cell is not displayed, but a cell with no content and a gray background color is displayed, and the button in the group header view is selected
In the state of the time, the normal display of the original cell content to display, but the selected state, the last cell in the group of contacts will also be used to display a cell!! with no content and the background color is gray
When returning the number of row in each set of sections, to determine the status of the button in the group header view of the address Book, 1 is returned in the selected state, and the number of row returned by the other group is 0!!
demo:http://code.cocoachina.com/view/129452
If there is a better way, ask for advice ~ ~
The realization of QQ Friend list interface in imitation