草庐IT

iOS8 + UIDeviceOrientationDidChangeNotification 没有被调用

在我的工作应用程序(iOS7.0.1)中,UIDeviceOrientationDidChangeNotification被调用。现在,当我在iOS8.0中运行此应用程序时,UIDeviceOrientationDidChangeNotification未被调用。尝试了很多,但没有成功。EDIT-1:我使用下面的代码来添加方向变化的观察者。在iOS7中运行完美。iOS8不走运。[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(deviceOrientationDidChange:)name:UI

ios - AVPlayerItemDidPlayToEndTimeNotification 未触发

我正在使用AVPlayer从url播放视频。AVPlayerItemDidPlayToEndTimeNotification未触发。我已经把断点检查了。下面是我的代码片段:-@IBActionfuncplayButtonClicked(sender:UIButton){leturl:NSURL=NSURL(string:self.currentSelectedContent.link)!moviePlayer=AVPlayer(URL:url)playerViewController=AVPlayerViewController()playerViewController.player
12