title: Play/Pause with the same button
body: <p>How to make a <code>play/Pause</code> button with the same piece of code.</p>
  
  <pre><code>- (IBAction)min:(id)sender 
  {
    NSString *path = [[NSBundle mainBundle] pathForResource:@"1min" ofType:@"mp3"];
    AVAudioPlayer *theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
                    theAudio.delegate = self;
                    theAudio.numberOfLoops = -1;
                    [theAudio play];
                    [[NSUserDefaults standardUserDefaults] setObject:@"-" forKey:@"music"]; 
  }
  </code></pre>
  
  <p>How can I resume by the same button?</p>