1
請幫助快速價值型 '的UIViewController' 沒有成員 'varView'
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
var DestVC = segue.destinationViewController as UIViewController
var indexPath : NSIndexPath = self.tableView.indexPathForSelectedRow!
DestVC.varView = indexPath.row // This is the error line
}
的錯誤是
價值型 '的UIViewController' 沒有成員 'varView'
var DestVC = segue.destinationViewController as YourViewController 用您的destinationviewcontroller更改UIViewController – Sahil