【问题标题】:Exclude certain views from dimming with UIAlertController使用 UIAlertController 将某些视图排除在变暗之外
【发布时间】:2019-07-08 13:54:37
【问题描述】:

当呈现 UIAlertController 时,它会使整个屏幕变暗。有没有办法让某个视图不被调暗?

【问题讨论】:

    标签: ios swift iphone uikit


    【解决方案1】:

    简短的回答。 没有

    为什么?

    https://developer.apple.com/documentation/uikit/uialertcontroller

    UIAlertController 类旨在按原样使用,而不是 支持子类化。此类的视图层次结构是私有的,并且 不得修改

    强调我的。

    那你现在做什么?

    您可以推出自己的版本,或搜索可用的库。

    【讨论】:

      猜你喜欢
      • 2012-06-09
      • 1970-01-01
      • 2016-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-28
      • 1970-01-01
      相关资源
      最近更新 更多