該当のセルをスクロールさせる
let selectedIndexPath = NSIndexPath(forRow: 1, inSection: 1) self.tableView.scrollToRowAtIndexPath(selectedIndexPath, atScrollPosition:.Top, animated: true)
スクロールしない場合
automaticallyAdjustsScrollViewInsets = false or animated を false
日々の業務let selectedIndexPath = NSIndexPath(forRow: 1, inSection: 1) self.tableView.scrollToRowAtIndexPath(selectedIndexPath, atScrollPosition:.Top, animated: true)
スクロールしない場合
automaticallyAdjustsScrollViewInsets = false or animated を false
コメント