我有这个编译错误:为'prepareForSegue'发出SIL时,即使我注释掉函数体也会出现同样的错误
我的代码就像:
override func prepareForSegue(segue: UIStoryboardSegue?, sender: AnyObject?) {
if( segue?.identifier == "NewDiary")
{
let newDiaryController: NewDiaryViewController = segue?.destinationViewController as NewDiaryViewController;
newDiaryController.currentDateComp.day += dayOffset ;
}
}