First setup everything:
@interface MyPlayer : MPMoviePlayerViewControllerThis doesn't work, compiler error:
{
UIView *parentView;
}
@property (nonatomic, retain) UIView *parentView;
@end
@interface MyView : UIView
{
MyPlayer *myPlayer;
}
@end
self.myPlayer = [[MyPlayer alloc] init];This is ok:
self.myPlayer.parentView = self;
MyPlayer *player = [[MyPlayer alloc] init];Divide and conquer... If this didn't help you, remember to check that you import correct header files.
player.parentView = self;
self.myPlayer = player;
[player release];
No comments:
Post a Comment