Swift UITableView 마지막 행으로 이동
안녕하세요. 개발자 드리머즈입니다. Swift에서 UITableView를 다루다보면 scroll을 마지막으로 이동하고 싶을 때가 있습니다.(scroll to bottom)저의는 UITableView가 section과 row를 다 보여주고나서 마지막 행으로 스크롤을 이동하고 싶었습니다. 다행히 스택오버플로우에서 찾은 방법이 잘 동작했습니다. func scrollToBottom(){ DispatchQueue.main.async { let indexPath = IndexPath(row: lastRowInLastSection, section: lastSection) self.tableView.scrollToRow(at: indexPath, at: .bottom, animated: true) } } 먼저 위와 같..