Mark
Mark

Reputation: 14950

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 the app loads, can this be achieved?

Thanks Mark

Upvotes: 1

Views: 400

Answers (1)

user189804
user189804

Reputation:

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.

Upvotes: 2

Related Questions