[英]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.