问题
I have a couple apps on the Apple App Store and would like some way to send announcements to users whenever I want. Basically, I want to remotely change the text of an IUAlertview
and only trigger it to appear if I want it to (upon app opening and only if I updated the message).
So far I have no problem making the IUAlertview
appear on when the app opens, and I can easily program an NSUserDefault
flag to only make the IUAlertview
appear under certain circumstances, but really have no idea how to dynamically change the UIAlertview
text without resubmitting my app to Apple continuously.
Can someone please explain how this is done? Thanks!
回答1:
One way to do this is to have your app periodically (or upon each launch) check a file on a website that you control and if there is changed text (or a version number, or newer date than the last time an alert was displayed) there, then display that changed text in your UIAlertView.
来源:https://stackoverflow.com/questions/17789463/how-to-send-in-app-announcements-to-people-using-my-ios-app