-2

How can I display some view in the first time the app is opened like an instructions/tutorial page? Thanks

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Eilon
  • 87
  • 1
  • 5

1 Answers1

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