try this:
Code:
#import "MPMoviePlayerController.h"
@implementation MPMoviePlayerController
@synthesize contentURL;
- (id)initWithContentURL:(NSURL *) url //here you set the name of the parameter that can be passed to the method, you can pass the URL when you call the method
{
// not sure what Users/PMW/Desktop/HeartMonitor/HeartMonitor.mov was doing here, pass a url when you call the mehod
}
- (id)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
// Initialization code
}
return self;
}
- (void)drawRect:(CGRect)rect {
// Drawing code
}
- (void)dealloc {
[super dealloc];
} //one bracket is enough
@end
But I don't see the point in why you are implementing initWithContentURL in a controller class. Correct me if I'm wrong but normally you would want to do something like
Code:
[myMoviePlayer initWithContentURL: [NSURL URLWithString @"whatever"] ];