I am new to development on the iphone and ipod touch, and my first app is almost complete. The only thing I have to do is to make a UIAlertView on the first three lauches, but I am not sure how to do this! Here is the code I have so far, and it works great to make an alert on launch, but it pops up every time.
I am new to development on the iphone and ipod touch, and my first app is almost complete. The only thing I have to do is to make a UIAlertView on the first three lauches, but I am not sure how to do this! Here is the code I have so far, and it works great to make an alert on launch, but it pops up every time.
I would make an NSInterger to have a count of 0 by default. Each time the app launches, you would add 1 to the count and save the count with NSUserDefaults on each close. Then set up your alert view to only be triggered on the first three launches like so:
I would make an NSInterger to have a count of 0 by default. Each time the app launches, you would add 1 to the count and save the count with NSUserDefaults on each close. Then set up your alert view to only be triggered on the first three launches like so:
Sorry But I don't understand what to do here "I would make an NSInterger to have a count of 0 by default. Each time the app launches, you would add 1 to the count and save the count with NSUserDefaults on each close." Can you explain it a little easier?