【发布时间】:2021-05-04 21:04:20
【问题描述】:
我正在尝试从弹出视图控制器查看另一个视图作为完整视图
@IBAction func AddCommentBTN(_ sender: Any) {
performSegue(withIdentifier: "comment", sender: self)
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "comment" {
let destination = segue.destination as! CommentViewController
destination.comments = self.comments
destination.myId = self.myId
}
}
当我打开它时,它会将视图加载为弹出视图,如何将其打开为完整视图
【问题讨论】:
标签: ios swift xcode uiviewcontroller segue