When I try to build my project, I get the following error message
ABC Functions forbid explocit messages send of dealoc
- (void)dealloc {
[super dealloc];
}
this is the class def:
#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>
@interface cPlay : UIViewController{
MPMoviePlayerController *mp;
}
- (void) moviePlayBackDidFinish:(NSNotification*)notification;
-(void) NewVideo : (NSString *) strName;
@end
Just remove the dealloc function, ARC (Automatic Reference Counting) doesn’t allow dealloc by yourself. ARC will do that for you.
See this link:
http://www.raywenderlich.com/5677/beginning-arc-in-ios-5-part-1