UITableView with clickable, sortable headers
I'm trying to take an existing UITableView and add column headers which are clickable and sortable. I've looked at AQGridView but I can't see a way to g开发者_如何学JAVAet that sort of effect. At the moment I'm thinking of adding a UIButton above the UITableView then styling it to make it look like a header. Is this an awful idea?
On the iPhone there is not really enough space to do desktop program style column sorting.
The recommended way to to this is to put a UISegmentedControl
as the titleView
of the UINavigationBar
or a UIToolBar
.
Looks pretty, too.
精彩评论