相关疑难解决方法(0)

MPMoviePlayerController覆盖iOS 6

iOS6之前的MPMoviePLayerController在iOS6中存在覆盖问题,但是工作正常.

在我有这个代码之前,我似乎可以全屏播放电影:

@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];
}
Run Code Online (Sandbox Code Playgroud)

然后:

overlay = [[MovieOverlayViewController alloc] init];

UIWindow *keyWnd = [[UIApplication sharedApplication] keyWindow];
[keyWnd addSubview:overlay.view];
Run Code Online (Sandbox Code Playgroud)

在我的MoviePlayerViewController上,视图会出现.并添加了UIViews,但我再也看不到了.

真的卡住了,有什么建议吗?

objective-c mpmovieplayercontroller uiviewcontroller uiview ios6

5
推荐指数
1
解决办法
3590
查看次数