이동1 [iOS swift] 스크롤 뷰를 특정셀(cell) 또는 섹션(Section)으로 이동시키는 방법, TableView에서 특정셀로 또는 섹션으로 이동으로 시키는 경우가 흔히 있다. 그럴때 사용하는 것은 tableView.scrollToRow(at: IndexPath(row: 0, section: 0)) developer.apple.com/documentation/uikit/uitableview/1614997-scrolltorow Apple Developer Documentation developer.apple.com 위 링크에 들어가면 자세한 내용이 있다. 정적인 TableView에서는 정말 유용하고 좋지만.. 동적인 상황에서는 이슈가 하나있다. 어느순간 row가 0일 경우 runtime crash 죽는다.. scrollToRow(at: IndexPath(row: 0, section: 0)) 음..이거.. 2020. 9. 15. 이전 1 다음