Semantic Issue & Parse Issue: Missing context for method declaration & expected method body
<p>Getting a Semantic Issue &amp; Parse Issue: Missing context for method declaration &amp; expected method body for pausing and resuming UIImageviewanimation methods. Declared these two method in the MainViewController.h file </p>

<pre><code>#import &lt;UIKit/UIKit.h&gt;
#import &lt;AVFoundation/AVFoundation.h&gt;

- (void)resumeLayer:(CALayer *)layer;
- (void)PauseLayer:(CALayer *)layer;

@interface MainViewController : UIViewController
@property (nonatomic, retain) UIToolbar *toolbar;
@property (strong)AVAudioPlayer *audioPlayer;
@property (nonatomic, retain) NSTimer * timer;
</code></pre>

<p>methods in m file</p>

<pre><code>-(void)pauseLayer:(CALayer*)layer
{
CFTimeInterval pausedTime = [layer convertTime:CACurrentMediaTime() fromLayer:nil];
layer.speed = 0.0;
layer.timeOffset = pausedTime;
}

-(void)resumeLayer:(CALayer*)layer
{
CFTimeInterval pausedTime = [layer timeOffset];
layer.speed = 1.0;
layer.timeOffset = 0.0;
layer.beginTime = 0.0;
CFTimeInterval timeSincePause = [layer convertTime:CACurrentMediaTime() fromLayer:nil] - pausedTime;
layer.beginTime = timeSincePause;
 }
</code></pre>

<p>I m confused what i have not defined here.</p>

<p>Thanks for help.</p>
