第一次播放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
}
请帮助我解决这个问题。
答案 0 :(得分:0)
听起来您正在使用旧版本的SDK进行集成。请尝试使用http://github.com/adcolony上的最新版本进行更新。如果这不能解决您的问题,请向support@adcolony.com提交支持票。