我試圖通過segue將值從領域傳遞給另一個viewcontroller。問題在於它發生錯誤:Reciever沒有標識符。我嘗試了另一種方式,準備好了,但它的效果不如這個。接收器沒有標識符swift 2
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
let lektire = datasource[indexPath.row]
let destinationVC = DetaljiViewController()
destinationVC.programVar = lektire.ime
destinationVC.performSegueWithIdentifier("oLektiri", sender: self)
}
但是,我的segue肯定存在,其標識符已正確設置(請參閱下面的屏幕截圖)。
這是怎麼回事,我怎麼能解決這個問題?
對不起,我錯過了您在故事板中的其他細節! – dasblinkenlight