-1
我必须验证一些内容才能决定是继续执行viewDidload()
句子还是执行segue,但是当我调试代码时,在performSegueWithIdentifier调用之后执行即将到来的句子继续,用户可以看到当前ViewController的一些UI,我想在该ViewController中进行验证,而不是在其父项中进行验证。performSegueWithIdentifier不会立即执行
下面是我的一些代码:
override func viewDidLoad() {
super.viewDidLoad()
let questionD = self.question![DECRIPTION]
let type = self.question![TYPE] as? String;
if type == "60" {
performSegueWithIdentifier("showCameraSegue", sender: self)
}
setBackBtn()
self.lblResponse.text = questionD as? String;
lblResponse.backgroundColor = UIColor.whiteColor()
...
}