我在关闭 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)
}
试试
@IBAction func addCommentAction(sender: UIButton)
{
self.dismiss(animated: true, completion:{})
}
关于ios - 关闭 PopOverViewController 时黑色闪烁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38538652/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |