프로그램/iOS16 [ iOS 9.x -> iOS 10 ] dequeueReusableCellWithIdentifier, dequeueReusableCell UITableView 에서 dequeueReusableCellWithIdentifier 함수를 통해서 데이터를 다시 불러와 cell 화면을 구성합니다. iOS 10에서는 사용법이 다음과 같이 바뀌었습니다. [출처] ios UITableView Cell을 dequeueReusableCellWithIdentifier 통해서 조회할때 항상 nil ???|작성자 달망망이 iOS 9.x override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell = self.tableView.dequeueReusableCellWithIdentifier("Attractio.. 2016. 11. 29. [ iOS 9.x -> iOS 10 ] 세그웨어 (Segue) 화면 전환 시 데이터를 전달하기 위해서 사용하는 메소드가 iOS 10 에서는 prepare로 변경이 되었습니다. iOS 9.x override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { let destination = segue.destination as! Scene2ViewController destination.labelText = "Arrived from Scene 1" } iOS 10 override func prepare(for segue: UIStoryboardSegue, sender: Any?) { let destination = segue.destination as? Scene2ViewController des.. 2016. 11. 25. 이전 1 2 3 다음