Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Rappa819

macrumors newbie
Original poster
Feb 28, 2008
29
0
I have a UIAlertView that pops up when the program launches. I was wondering if there was a way to say like, This message will pop up x more times. and then decrement every time it starts until it hits 0 and then will not show ever again unless the program is reinstalled.

I did not know exactly what to search for.
 
Of course this is possible. You just to have a counter variable that you save to a file, and load from each time the application starts. If you save the file inside the application package, it will be removed when the application is.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.