Ios5 MPMoviePlayServiceController与外观框架(iOS 5)

Ios5 MPMoviePlayServiceController与外观框架(iOS 5),ios5,uinavigationbar,uibarbuttonitem,appearance,Ios5,Uinavigationbar,Uibarbuttonitem,Appearance,我正在我的项目中使用MPMoviePlayerViewController。我为UIButtons和UINavigationbar定义了如下外观: [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setBackgroundImage:[UIImage imageNamed:@"woodenBarButton"]

我正在我的项目中使用MPMoviePlayerViewController。我为UIButtons和UINavigationbar定义了如下外观:

[[UIBarButtonItem   appearanceWhenContainedIn:[UINavigationBar class], nil]   
                    setBackgroundImage:[UIImage imageNamed:@"woodenBarButton"] 
                    forState:UIControlStateNormal 
                    barMetrics:UIBarMetricsDefault];

[[UINavigationBar appearance]   setBackgroundImage:[UIImage imageNamed:@"navigationbarBackground"] 
                                forBarMetrics:UIBarMetricsDefault];
所以现在MPMoviePlayerViewController也在使用导航栏。现在的问题是:按钮使用给定的外观,但工具栏不=>它看起来很糟糕。现在我有以下问题:

  • 我能否说服MPMoviePlayerServiceController中的UINavigationBar使用外观
  • 或者只能完全删除MPMoviePlayerViewController的外观
  • 我试图通过playerViewController.navigationitem.leftbarbuttonitem访问该按钮并覆盖属性,但不起作用


    如果你能帮助我,那就太好了。谢谢。

    您是否也尝试过为
    MPMoviePlayServiceWController
    设置
    中包含的
    外观<代码>外观
    包含在其中时的外观
    同时工作

    [[UINavigationBar appearance]   setBackgroundImage:[UIImage imageNamed:@"navigationbarBackground"] 
                                forBarMetrics:UIBarMetricsDefault];
    [[UINavigationBar appearanceWhenContainedIn:[MPMoviePlayerViewController class], nil] setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
    

    这里没人能帮我吗?很高兴能帮上忙。请将此答案标记为正确答案(复选标记),因为这是stackoverflow上的常见行为。在展示MFMessageComposeViewController时,我们也使用了这种技术来删除外观定制。谢谢