【问题标题】:When I updated the Xcode, in my app, my root view controller can be seen at the top of the current view [duplicate]当我更新 Xcode 时,在我的应用程序中,我的根视图控制器可以在当前视图的顶部看到 [重复]
【发布时间】:2020-01-28 21:08:22
【问题描述】:

因此,当我将其向下拖动时,应用程序将关闭当前视图并转到那里。不想要了,怎么解决?更新前一切正常

【问题讨论】:

    标签: ios swift xcode


    【解决方案1】:

    在 iOS 13 SDK 中,由于引入了深色模式,颜色处理发生了重大变化。

    将当前视图的背景色设置为系统背景色。

    并考虑默认情况下所有模态呈现的视图控制器都以表格形式呈现。

    【讨论】:

    【解决方案2】:

    在 iOS 13 中,默认的模态呈现是 sheet,这就是你得到的。

    要获得旧的模态样式,请执行以下操作:

    loginVC.modalPresentationStyle = .currentContext
    

    【讨论】:

      猜你喜欢
      • 2016-11-06
      • 1970-01-01
      • 2011-04-15
      • 1970-01-01
      • 2014-09-03
      • 1970-01-01
      • 2012-01-30
      • 2012-11-07
      • 1970-01-01
      相关资源
      最近更新 更多