第一次播放 ADColony 广告时一切正常,但第二次播放广告时它没有占据整个屏幕,在我关闭广告后应用程序崩溃并显示日志:
由于未捕获的异常“UIApplicationInvalidInterfaceOrientation”而终止应用程序,原因:“支持的方向与应用程序没有共同的方向,并且 [ADCRotatingViewController shouldAutorotate] 正在返回 YES”
我的应用程序是用 swift 编码的,它返回 shouldAutorotate() 为 false,支持的方向是 UIInterfaceOrientation.Portrait.rawValue | UIInterfaceOrientation.LandscapeLeft.rawValue
override func shouldAutorotate() -> Bool {
return false
}
override func supportedInterfaceOrientations() -> Int {
return UIInterfaceOrientation.Portrait.rawValue | UIInterfaceOrientation.LandscapeLeft.rawValue
}
请帮我解决这个问题。
最佳答案
听起来您正在与我们的旧版 SDK 集成。请尝试在 http://github.com/adcolony 更新最新可用版本.如果这不能解决您的问题,请将支持票提交至 support@adcolony.com。
关于ios - ADColony 视频广告因方向改变导致应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28629842/