![](/img/trans.png)
[英]Rich push notification not working in iPhone 11 Pro Max in iOS
[英]iOS (swift) old launch screen displaying after upgrade the application on iphone 11 , 11 pro , 11 pro max with iOS 13.3
复制步骤:
结果:启动屏幕文本未更改。 启动屏幕上显示的旧文本。
系统缓存启动图像并且不会非常主动地清除它们。 您可以添加代码来自己清除缓存,尽管我会将其放在功能标志后面,因为您可能不会一直想要绕过缓存。
import UIKit
public extension UIApplication {
func clearLaunchScreenCache() {
do {
try FileManager.default.removeItem(atPath: NSHomeDirectory()+"/Library/SplashBoard")
} catch {
print("Failed to delete launch screen cache: \(error)")
}
}
}
代码片段取自: https ://rambo.codes/posts/2019-12-09-clearing-your-apps-launch-screen-cache-on-ios
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.