title: Save a set of integers iPhone
body: <p>In my game I want to save a set of integers as statistics players can view. E.g number of deaths. This is an int I simply increase by one each time they get a game over.</p>
  
  <p>How can I save this then have it at that number when I relaunch the game?</p>
  
  <p>Thanks.</p>
  
  <p>EDIT:</p>
  
  <p>Ok after reading a few answers Im thinking writing to a plist is the way forward. I have been looking at tutorials but lets say I try this:</p>
  
  <pre><code>scoreData *score = [scoreData sharedData];
  [dictionary setValue:score.highScore forKey:@"key2"];
  [dictionary writeToFile:@"stats.plist" atomically:NO];
  </code></pre>
  
  <p>I have accessed my singleton with my score inside. Now when trying to setValue I get an error saying Im trying to convert an int to object.</p>
  
  <p>Im not sure how else to approach it. It seems simple enough, however everywhere I look seem to give essentially the same approach.</p>
  
  <p>Thanks for the help thus far, anymore is appreciated.</p>