-2

This is my code please explain me the problem...

#import <Foundation/Foundation.h>
#import <MediaPlayer/MediaPlayer.h>
#import <AVFoundation/AVFoundation.h>
#import <UIKit/UIKit.h>
@interface AudioPlayerModel : NSObject
**-(AVPLayer*) getPlayer;**                   //error expected a type
@end

Please tell me the error...

SUDHAKAR RAYAPUDI
  • 549
  • 1
  • 9
  • 18

2 Answers2

2

You've put AVPLayer with a capital L. You need AVPlayer.

Ewan Mellor
  • 6,747
  • 1
  • 24
  • 39
1

Hey its AVPlayer* not AVPLayer*... you've put L caps...

But for clarity check "Expected a type" error pointing to the return type of a method

and Objective C - Error: 'Expected a type'

and many similar Questions...

Community
  • 1
  • 1