我有很多依赖于的弹出类
+ (BOOL)wantsDefaultContentAppearance{
return NO;
}
阻止显示阴影。现在我看到这在 ios 13 中已被弃用。那么替代品是什么?我尝试阅读 apple 的文档,但找不到任何内容。
最佳答案
如果你打开UIPopoverBackgroundView
类的界面,这个类变量在那里被弃用,消息不再支持
,这意味着没有替代品,它只是赢了'工作。
/* This method may be overridden to prevent the drawing of the content inset and drop shadow inside the popover. The default implementation of this method returns YES.
*/
@available(iOS, introduced: 6.0, deprecated: 13.0, message: "No longer supported")
open class var wantsDefaultContentAppearance: Bool { get }
通常,Apple 类接口(interface)有弃用消息,提供有关必须使用哪些 API 而不是已弃用的 API 的说明,或者根本没有弃用消息,这可能会给人们带来一些希望,即有一些解决方法。在此明确表示不再支持。
关于ios - 如何防止弹出窗口中的阴影 iOS 13,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64065599/