为'prepareForSegue'发射SIL

时间:2014-09-02 02:43:34

标签: swift

我有这个编译错误:为'prepareForSegue'发出SIL时,即使我注释掉函数体也会出现同样的错误

我的代码就像:

override func prepareForSegue(segue: UIStoryboardSegue?, sender: AnyObject?) {
        if( segue?.identifier == "NewDiary")
        {

            let newDiaryController: NewDiaryViewController = segue?.destinationViewController as  NewDiaryViewController;

            newDiaryController.currentDateComp.day +=  dayOffset ;
        }
}

0 个答案:

没有答案