【问题标题】:perform segue as full view from another view从另一个视图执行 segue 作为全视图
【发布时间】: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


    【解决方案1】:

    看起来您正在使用 StoryBoards,这是您的操作方法

    1)转到 main.storyboard 文件并选择 segue 并进入其属性检查器菜单(选择 segue 并按 option + command + 5) 2)将演示选项更改为全屏

    你现在有了全屏,告诉我这是怎么回事

    【讨论】:

      猜你喜欢
      • 2019-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-02
      相关资源
      最近更新 更多