开发者

iphone: Preserve view on top of mpMoviePlayerController

I have a mpMoviePlayerController, and I have subview on top of it. Wh开发者_JAVA百科en the user taps the fullscreen button of the mpMoviePlayerController, the subview disappears, and only appears when I go back to the original size. Is there a way to keep the subview? Is there a way to get a reference of the "scaled" moviePlayer?


Quick Draft:

  • trap MPMoviePlayerWillEnterFullscreenNotification like this:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(MPMoviePlayerDidEnterFullscreen:) name:MPMoviePlayerDidEnterFullscreenNotification object:nil];

  • within MPMoviePlayerDidEnterFullscreen, add that subview onto the current keyWindow like this:

[[[UIApplication sharedApplication] keyWindow] addSubview:mySpecialSubview]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜