Having a problem with MPMoviePLayerController with overlay in iOS6, before iOS6 everything worked fine.
It seems I can play a movie in full screen before I got this code:
@interface MovieOverlayViewController : UIViewController
{
UIImageView *skiparrow;
}
@end
@implementation MovieOverlayViewController
-(void) viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
touchtoskip.frame = CGRectMake( xAdjust,
yAdjust,
touchtoskip.image.size.width / scale,
touchtoskip.image.size.height / scale);
[self.view addSubview:touchtoskip];
}
Then:
overlay = [[MovieOverlayViewController alloc] init];
UIWindow *keyWnd = [[UIApplication sharedApplication] keyWindow];
[keyWnd addSubview:overlay.view];
A DOES message appears on my MoviePlayerViewController. And adds UIViews, but I donβt see anything else.
Really stuck, any suggestions?
source
share