Hi i have the following error in my code error:cannot find protocol declaration for MPMusicPlayerController and am completely stumped as to what it means.
Any insight into this is greatly appreciated.
Hi i have the following error in my code error:cannot find protocol declaration for MPMusicPlayerController and am completely stumped as to what it means.
Any insight into this is greatly appreciated.
2 add #import to your class file
EDIT : This code compiled without errors (for OS 3.0)
#import "UntitledAppDelegate.h"
#import <MediaPlayer/MediaPlayer.h>
@implementation UntitledAppDelegate
@synthesize window;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
MPMusicPlayerController *mc;
[window makeKeyAndVisible];
}
@end
I had the same issue. Maybe you don't have the framework linked in the project?
Right-click your Target file on Groups & Files in XCode. On the window that opens there will be a list of Linked Libraries. Click + and add MediaPlayer.framework