I want to have selected index for UITableView. I have written following code:
UITableView
NSIndexPath *index = [NSIndexPath indexPathForRow:1 inSection:0];
In didSelectRowAtIndexPath, set an interface declared NSIndexPath as the indexpath returned. Then you can scroll to that variable. If you need help, comment and I can give some sample code.