title: iPhone viewDidBecomeActive (or just resuming from background) questions
body: <p>I've been researching this for a few hours and I'm still unsure if I am even heading in the right direction.</p>
  
  <p>What I would like to do:
  When my app is loaded, I need to determine if it's the first time the user has loaded the app that day.</p>
  
  <p>How I was planning on doing it:
  I made some labels to display the current day and last day that they used the app. (See sample code below).</p>
  
  <pre><code>-(void)pressStatus{
  NSString * currentDay;
  currentString = currentDay.text;
  NSString * lastDay;
  lastString = lastDay.text;
  if([currentDay isEqualToString: lastDay]){
      status.text = @"same";
  }
  else {
      status.text = @"different";
      [self autoReset];
  
  }
  </code></pre>
  
  <p>So, it does what I need to do, but at the push of a button. Instead, I would like it to happen as soon as the app loads from the background. From what I read, I think I should use viewDidBecomeActive, but I'm not fully understanding it. I've never used the delegate as of yet and at this point everything I'm reading is confusing me more than the last.</p>
  
  <p>Questions</p>
  
  <ol>
  <li><p>Is viewDidBecomeActive the best way to do this?</p></li>
  <li><p>If so, can I call the pressStatus function in the MainViewController from within applicationDidBecomeActive in the delegate?</p></li>
  </ol>
  
  <p>Thanks in advance.</p>