簡體   English   中英

如何使用 iOS Swift SKOverlay 與 UIKit 交叉推廣另一個應用程序?

[英]How can I use iOS Swift SKOverlay with UIKit to cross promote another app?

我想在我的基於 UIKit 的應用程序中交叉推廣另一個應用程序(例如,沒有 SwiftUI)。

SKOverlay 在 iOS 14 中添加,但似乎針對基於 SwiftUI 的應用程序

我在這里讀過如何做到這一點, https://sarunw.com/posts/cross-promote-apps-with-skoverlay/但建議的 UIKit 方法對我不起作用。

經過進一步研究,您可以使用 https ://sarunw.com/posts/cross-promote-apps-with-skoverlay/中的 UIKit 示例,但在 viewDidLoad 中調用 displayOverlay() 方法,否則尚未創建 windowScene。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM