title: How do I store permanent data
body: <p>I am new to iOS development and have the following problem.</p>
  
  <p>EXPLANATION:
  I have an app which consists of several mini games. Each mini game is available through in app purchase. However the mini game availability is saved in a BOOL variable like this:</p>
  
  <pre><code> _miniGamesArray = [[NSMutableArray alloc] init]; 
   NSMutableDictionary *mutDictMg0 = [NSMutableDictionary dictionaryWithCapacity:3];
   [mutDictMg0 setValue:[self.gameAvailabilityMutableArray objectAtIndex:0] forKey:@"GameAvailable"];
  [_miniGamesArray addObject:mutDictMg0];
  </code></pre>
  
  <p>PROBLEM:</p>
  
  <p>Each time I start the app the game availability is checked from the <code>self.gameAvailabilityMutableArray</code> which is set to:</p>
  
  <pre><code>- (NSMutableArray *)gameAvailabilityMutableArray
  {
      if (!_gameAvailabilityMutableArray)
      {
          //[_gameAvailabilityMutableArray addObjectsFromArray:@[@1,@0,@0,@0    ,@0,@0,@0,@0]];
          _gameAvailabilityMutableArray = [[NSMutableArray alloc] initWithArray:@[@1,@1,@1,@1    ,@1,@1,@1,@1]];
  
  
      }
      return _gameAvailabilityMutableArray;
  }
  </code></pre>
  
  <p>When the customer buys a mini game I want the array to be set to (example):</p>
  
  <pre><code> @[@1,@1,@0,@0    ,@0,@0,@0,@0]]
  </code></pre>
  
  <p>TRIED SOLUTIONS:
  I tried to implement the array by calling the iTunes server and writing the data. However, the time to recieve the request is greater then the app loading time. The second problem arrises if there is no internet connection, then the app crashes.</p>
  
  <p>I also tried using .plist files. I don't know why but writing to the plist file doesn't change it's contest all the time! Some times it works , sometimes it doesn't... Sometimes the app loads the values correctly sometimes it mixes them with the last values.</p>
  
  <p>QUESTION:</p>
  
  <p>Is there a way to store permanent app data which is being checked when the app loads beside plists?</p>
  
  <p>Thank you for your time.</p>