6 Replies
      Latest reply on Jan 19, 2017 6:50 AM by georgbachmann
      sidan5 Level 1 Level 1 (0 points)

        I'm using this code in my app:



            if ([[NSUserDefaults standardUserDefaults] objectForKey:@"First_RUN"] == NULL) {

                [self tutorial:nil];

                [[NSUserDefaults standardUserDefaults] setInteger:1 forKey:@"First_RUN"];

                [[NSUserDefaults standardUserDefaults] synchronize];




        I'm using this code to know when the first time the app runs, if that is the case I show a tutorial.

        After upgrading to 9.3.1 I found out that it stopped working so that every time the app runs tutorial appears.

        Tried to debug this but it seems that [NSUserDefaults standardUserDefaults] just stopped working.



        I'm using old Xcode for this app (6.4). Any help using [NSUserDefaults standardUserDefaults] in another way or explanation for this issue would help (I have this kind of code in many of my apps and it all breaks now).