Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在加载 ViewDidLoad 时向用户发出警报,并且我希望它在我单击它时将我引至我的付费应用程序所在的应用商店。我该怎么办?
viewDidLoad在显示 UI 之前触发。您将要将该代码放在viewDidAppear.
viewDidLoad
viewDidAppear