gpt4 book ai didi

iphone - "UIStatusBarStyleBlackTranslucent is not available on this device. Ignoring UIStatusBarStyle key in Info.plist."- 该怎么办?

转载 作者:行者123 更新时间:2023-12-03 19:16:08 28 4
gpt4 key购买 nike

我有一个适用于 iPhone/iPad 的通用二进制应用程序。在控制台中我总是收到此日志:

UIStatusBarStyleBlackTranslucent is not available on this device. Ignoring UIStatusBarStyle key in Info.plist.

我现在必须担心什么吗?两者都只有一个 info.plist,对吧?我怎样才能阻止这个日志的发生?我想如果我把它留在那里,它会向崩溃日志发送垃圾邮件吗?

最佳答案

只有一个plist。可以为 iPad 为该键指定不同的值,但我不确定该键是否支持。

这听起来确实没什么大不了的。您可以将其从 plist 中删除并以编程方式设置。看起来如果你尝试在 iPad 上设置它,它只会将状态栏设置为黑色,因此没有太多理由检查 UI 习惯用法......

无论如何,如果您想尝试一下,请参阅信息属性列表关键引用文档。

In iOS 3.2 and later, applications can designate keys in the Info.plist file as being applicable only to specific types of devices. To create a device-specific key, you combine the key name with some special qualifiers using the following pattern:

key_root-~

In this pattern, the key_root portion represents the original name of the key. The and portions are both optional endings that you can use to apply keys to specific platforms or devices. Currently the only platform you can specify is iphoneos.

To apply a key to a specific device, you can use one of the following values:

iphone - The key applies to iPhone devices. ipod - The key applies to iPod touch devices. ipad - The key applies to iPad devices. When searching for a key in your application’s Info.plist file, the system chooses the key that is most specific to the current device. For example, to indicate that you want your application to launch in a portrait orientation on iPhone and iPod touch devices but in landscape-right on iPad, you would configure your Info.plist with the following keys:

关于iphone - "UIStatusBarStyleBlackTranslucent is not available on this device. Ignoring UIStatusBarStyle key in Info.plist."- 该怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3949009/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com