开发者

Set a grouped UITableView to start at a given section?

I have a grouped UITableView that has basic data inside it, but I would like to start the UITableView at a certain section when th开发者_如何学编程e app loads, can this be achieved?

Thanks Mark


Sure - use the scrollToRowAtIndexPath method of UITableView. Using the index path you specify which section and which row you would like to scroll to. Presumably you would like to see it at the top of the table so in the method call specify UITableViewScrollPositionTop.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜