关闭视图控制器使用(lldb)崩溃应用程序

时间:2015-08-24 06:56:27

标签: ios swift

当我关闭控制器时,我的应用程序出现问题,使用lldb,我没有做错任何事情,在这里提供项目和示例代码:

我在这里介绍:

func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {

    var cont = storyboard?.instantiateViewControllerWithIdentifier("Detail") as! Detail
    cont.link = indexPath.row
    self.view.window?.rootViewController?.presentViewController(cont, animated: true, completion: nil)

}

在此解雇:

@IBAction func disiss(sender: AnyObject) {

    self.dismissViewControllerAnimated(true, completion: nil)


}

我的项目在这里: https://yadi.sk/d/pSscby7ZicqSU

我认为问题发生在试图打开和解雇,快速打开和解雇时!有时我只是打开它,解雇它,它崩溃了!我正在iPhone 6上进行测试。我刚刚在模拟器iPhone 6上试过它并且它崩溃了。

0 个答案:

没有答案