-1
오류는 "함정에 스레드 섹션에서 열립니다
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {
if segue.identifier == "findMap" {
let MapViewController = segue.destinationViewController as UIViewController
if sender as UITableView == self.searchDisplayController!.searchResultsTableView {
let indexPath = self.searchDisplayController!.searchResultsTableView.indexPathForSelectedRow()!
let destinationTitle = filteredDepartments[indexPath.row].name
MapViewController.title = destinationTitle
} else {
let indexPath = self.tableView.indexPathForSelectedRow()!
let destinationTitle = departments[indexPath.row].name
MapViewController.title = destinationTitle
}
}
}
"-row :
-> 0x2f6e18 : 트랩
에러 코드는 위와이다
-> 스레드 1 EXC_BREAKPOINT (코드 = EXC_ARM_BREAKPOINT, SU
내 새로운 Swift 튜토리얼을 참조하십시오. http://www.apeth.com/swiftBook/ch04.html#_object_identity – matt