日々精進

新しく学んだことを書き留めていきます

2012-05-25から1日間の記事一覧

UITableViewの選択するセルをプログラムから操作するときの注意点

IT

プログラムから先頭のセルを選択したい、という場合、以下のようにする。 [self.currentTableViewController.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] animated:NO scrollPosition:UITableViewScrollPositionTop]; [NSI…