How can I display some view in the first time the app is opened like an instructions/tutorial page? Thanks
Asked
Active
Viewed 206 times
1 Answers
1
Perhaps have a bool value in NSUserDefaults
to let you know whether or not the user's been through the tutorial yet. For example you can set:
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"tutorial_complete"];
once the tutorial's complete. So:
if (![[NSUserDefaults standardUserDefaults] boolForKey:@"tutorial_complete"])
you can go to a tutorial page, but
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"tutorial_complete"])
you can skip the tutorial.

Lyndsey Scott
- 37,080
- 10
- 92
- 128
-
I tried the same way. But I'm having the problem that the view showing when I remove the instance of the app and use again. – Ramakrishna Mar 17 '17 at 05:33
-
@Ramakrishna Yes, if you delete the app, all the data you save to the app will be deleted as well. If you want to save the data, you'd have to post it to a server or cloud. – Lyndsey Scott Mar 17 '17 at 05:54
-
Thanks for u r replay. I got the solution. – Ramakrishna Mar 17 '17 at 06:10