Swift – UITableView

該当のセルをスクロールさせる
let selectedIndexPath = NSIndexPath(forRow: 1, inSection: 1) self.tableView.scrollToRowAtIndexPath(selectedIndexPath, atScrollPosition:.Top, animated: true)

スクロールしない場合

automaticallyAdjustsScrollViewInsets = false or animated を false

コメント

タイトルとURLをコピーしました