我在关闭 PopOverViewController 时出现黑屏。
ViewController.swift 中的代码
if segue.identifier == "addComment"
{
let controller = segue.destinationViewController as! ProfileCommentPopOver
controller.popoverPresentationController?.delegate = self
controller.preferredContentSize = CGSizeMake(250, 150)
controller.fetchedProfileID = sendToUserID
}
PopOverViewController.swift
@IBAction func addCommentAction(sender: UIButton)
{
self.dismissViewControllerAnimated(true, completion: nil)
}
Best Answer-推荐答案 strong>
试试
@IBAction func addCommentAction(sender: UIButton)
{
self.dismiss(animated: true, completion:{})
}
关于ios - 关闭 PopOverViewController 时黑色闪烁,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/38538652/
|