のインデックスを選択したいUITableView
。私は次のコードを書きました:
NSIndexPath *index = [NSIndexPath indexPathForRow:1 inSection:0];
[tableView scrollToRowAtIndexPath:index
atScrollPosition:UITableViewScrollPositionTop
animated:YES];
これは常に最初のアイテムで機能します。インデックスを選択したいindexPathForRow.
助けてください。ありがとう。