开发者

Restart iPhone App [duplicate]

开发者 https://www.devze.com 2023-03-20 08:21 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Force iphone app to restart programmatically开发者_运维百科
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Force iphone app to restart programmatically

开发者_运维百科

I have an alert popping up informing the user to restart the app, in order to change the theme.

However, if the user selects OKAY, from the alert, I would like to automatically restart the app. Is this possible or allowed by Apple?

Thanks for any help


Not possible. You can exit the app if you want using exit(1); but is highly discouraged. Why do you want to restart your app? There should be other workarounds to that.


No. You can't relaunch your app. You should consider a better approach to themes.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号