Restart iPhone App [duplicate]
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.
精彩评论