title: save,load and update win count using NSUserDefaults in objective c
body: <p>I have two scenes - in <code>GameScene</code> I get win count and save it to <code>BonusScene</code>, every thing works fine, but I want to display win count on <code>GameScene</code> every time, I restart app in <code>BonusScene</code> it show up right count, but in <code>GameScene</code> it starts with 1. Here are what I have been using:   <strong>GameScene.m</strong></p>
  
  <pre><code>-(void)winCount{
  win++;
  winningCount =winningCount +win;
  NSLog(@"%i",win);
  NSUserDefaults *scoreprefs = [NSUserDefaults standardUserDefaults];
  [scoreprefs setInteger:winningCount forKey:@"winningCount"];
  
  winLabel = [SKLabelNode labelNodeWithFontNamed:@"ROTORcapExtendedBold"];
  winLabel .fontSize = 70.f;
  winLabel .position = CGPointMake(CGRectGetMidX(self.frame)+(CGRectGetMidX(self.frame)/2),CGRectGetMidY(self.frame));
  winLabel .zPosition = 5;
  winLabel .text = [NSString stringWithFormat:@"%ld",(long)winningCount];
  [self addChild:winLabel];
  </code></pre>
  
  <p>And in <strong>BonusScene.m</strong></p>
  
  <pre><code>@implementation BonusScene
  @synthesize winningCount;
  -(id)initWithSize:(CGSize)size{
  NSUserDefaults *scoreprefs = [NSUserDefaults standardUserDefaults];
  self = [super initWithSize:size];
  if (self){
  winningCount =[scoreprefs integerForKey:@"winningCount"];
      SKLabelNode *wins = [SKLabelNode labelNodeWithFontNamed:@"ROTORcap Extended Bold"];
      wins.text =[NSString stringWithFormat:@"%ld",(long)winningCount ];
      wins.position = CGPointMake(CGRectGetMidX(self.frame) + 100,(CGRectGetMidY(self.frame)) + self.frame.size.height/4 );
      wins.fontSize = 15.f;
      [self addChild:wins]
  </code></pre>
  
  <p>How can I update it in <code>GameScene</code> so it will show same result as in <code>BonusScene</code>?</p>