Calling method within another method makes rewind button act differently
<p>When i call playpauseAction method in rewind method then rewind button behaves little bit different.</p>

<p>After calling this method </p>

<pre><code> [self playpauseAction:_playButton];
</code></pre>

<p>in rewind method makes rewind button act differently like after pressing play button if i press rewind button it does nothing but again if i press rewind button it works very fine. </p>

<p>And if i hit the rewind button very first time it works fine and if i hit it again it does nothing. why is that.</p>

<p>If i remove this</p>

<pre><code>[self playpauseAction:_playButton];
</code></pre>

<p>from the rewind method then it works fine.Then there is no problem.</p>

<pre><code>-(void)rewind:(id)sender{
audioPlayer.currentTime = 0;
[timer invalidate];
ContainerViewController *viewController = [[[ContainerViewController alloc] init]autorelease];
viewController.view.frame = CGRectMake(0, 0, 320, 480);
[self.view addSubview:viewController.view]; 
[self.view addSubview:toolbar];
[self playpauseAction:_playButton];
}
</code></pre>

<p>Why rewind button does nothing if i hit it right after i hit play button and also when i hit rewind button once and if i will hit rewind button again it will do nothing.</p>

<p>And if i remove this statement</p>

<pre><code> [self playpauseAction:_playButton];
</code></pre>

<p>Then rewind button acts fine no matter how many times you are hitting it. It will always execute rewind method.</p>

<p>Any one have any ideas.</p>

<p>Thanks</p>
