UITableView and presentViewController takes 2 clicks to display

前端 未结 8 1601
独厮守ぢ
独厮守ぢ 2020-12-13 18:34

I am using a UITableView to present a variety of viewControllers. Depending on which index is clicked, it will present a different view controller, which can then be dismis

8条回答
  •  不知归路
    2020-12-13 19:19

    Swift 3 :

    DispatchQueue.main.async(execute: {
       self.present(yourViewControllerHere, animated: true, completion: nil)
    })
    

提交回复
热议问题