我在iOS 7中实现了这个代码并且工作得很好,但是在iOS 8中它不起作用
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youTubeStarted:) name:@"UIMoviePlayerControllerDidEnterFullscreenNotification" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youTubeFinished:) name:@"UIMoviePlayerControllerWillExitFullscreenNotification" object:nil];
-(void)youTubeStarted{
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
appDelegate.fullScreenVideoIsPlaying = YES;
}
-(void)youTubeFinished{
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
appDelegate.fullScreenVideoIsPlaying = NO;
}
Run Code Online (Sandbox Code Playgroud)
我已经尝试将UIMoviePlayerControllerDidEnterFullscreenNotification更改为MPMoviePlayerWillEnterFullscreenNotification.没有运气
还有别的办法吗?
编辑
看看我在iOS 8.1中使用NorthBlast的答案会发生什么.它与iOS 8.0和iOS 8.0.2完美配合

在iOS 6中,我使用了这种方法
- (void)drawRect:(CGRect)rect
{
// Drawing code
UIImage *image = [UIImage imageNamed: @"nav_bar.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
Run Code Online (Sandbox Code Playgroud)
但是当我在iOS 7中使用它时,它只涵盖了将状态栏留空,我已经尝试使用更大的图像,它不起作用.
但最重要的是,我想在导航栏中使用半透明选项,它是否兼容translucid并在导航栏中有自定义图像?
我想知道我做错了什么?
插入的代码就是这个,由twitter给出:
<blockquote class="twitter-tweet"><p>Gracias <a href="https://twitter.com/FelipaoCaicedo">@FelipaoCaicedo</a> por ser parte de nuestro proyecto y así ayudar alimentar el sueño de nuestros niños. <a href="http://t.co/e2q21Gai3f">pic.twitter.com/e2q21Gai3f</a></p>— Fundación EL NINE (@FundacionELNINE) <a href="https://twitter.com/FundacionELNINE/statuses/387664123439628288">October 8, 2013</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
Run Code Online (Sandbox Code Playgroud)
这是twitter给我的代码,但它仍然向我展示了这一点

我想得到这样的东西
