Error when dismissing view controller

前端 未结 6 1708
时光取名叫无心
时光取名叫无心 2021-02-07 07:52

Getting an error when dismissing a view controller, not seen anything like it before, and not much about it on the internet.

heres the error: * Assertion failur

6条回答
  •  误落风尘
    2021-02-07 08:16

    I had the same problem while calling the camera view

    Swift syntax for the same problem:

    dispatch_async(dispatch_get_main_queue(), { 
        //Code that presents or dismisses a view controller here  
        self.presentViewController(imagePicker, animated: true, completion: nil)
    })
    

提交回复
热议问题