通常UITableViewで使える
NSIndexPath* indexPath = [NSIndexPath indexPathForRow:20 inSection:0];
[self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionNone animated:YES];
が使いたかったが、
エラーが出る!
で調べたら、
ViewController.hの
@interface ViewController : UIViewController
が怪しい!
@interface ViewController : UIViewControllerと
@interface ViewController : UITableViewController
は使い方が違うらしい。
やばい、急いで調べねば!!
わかったらまた報告します。