在解除viewController时,IBOutlets变为nil

时间:2016-08-04 08:41:33

标签: ios swift xcode null iboutlet

我有一个ViewController,我可以从中转到下一个ViewContoller。现在,当我使用此代码从第二个viewController返回时

self.dismissViewControllerAnimated(true, completion: nil)

我的IB网点是零我不知道为什么

enter image description here

我收到此错误"fatal error: unexpectedly found nil while unwrapping an Optional value"     当我在下面的一个网点上访问时

progress.setupPoint("10")

当我第一次来到这个屏幕时,不会发生错误,但只有当我从下一个ViewController回来时才会发生错误。请帮忙指导。感谢

  

更新

这是我的IBOutlets。我将其中一个从弱变为强

enter image description here

0 个答案:

没有答案
相关问题