Missing expected identifier
<p>Getting message <code>expected identifier</code> in red for below these two statements </p>

<pre><code>}  else if ([playpauseButton.state == UIControlStateSelected])

} else if ([playpauseButton.state == UIControlStateNormal])
</code></pre>

<p>I m not getting where i m missing identifier in below play/pause/resumeaction</p>

<pre><code>if( playpauseButton.state == UIControlStateNormal ){
    [sender setImage:[UIImage imageNamed:@"pause.png"] forState:UIControlStateSelected];

[audioPlayer play];
self.timer = [NSTimer scheduledTimerWithTimeInterval:11.0
                                              target:self
                                            selector:@selector(displayviewsAction:)
                                            userInfo:nil
                                             repeats:NO];

}  else if ([playpauseButton.state == UIControlStateSelected])
{
[sender setImage:[UIImage imageNamed:@"Play Icon.png"] forState:UIControlStateNormal];
[audioPlayer pause];
[self pauseTimer];
} else if ([playpauseButton.state == UIControlStateNormal])
{
[sender setImage:[UIImage imageNamed:@"pause.png"] forState:UIControlStateSelected];
[audioPlayer play];
[self resumeTimer];}}
</code></pre>

<p>I have programmed this way because i want when play is pressed it should play audio file plus start <code>NSTimer</code> to load <code>view controllers</code> one after another. When pause is pressed it should pause audio file plus <code>NSTimer</code> to avoid further loading of <code>view controllers</code> one after another and finally pause is resumed back to play audio file from the same point it should resume timer to start loading <code>view controllers</code> one after the other from that point.</p>

<p>If any one can help me to solve this.</p>

<p>Appreciate help.</p>

<p>Thanks.</p>
