Xcode管理器崩溃部分仅显示此错误。没有提供崩溃的实际原因。
MyApp
0x1000ab038 0x100054000 + 356408
UIKit [UIViewController loadViewIfRequired] + 360
UIKit [UINavigationController _layoutViewController:]
UIKit [UINavigationController _updateScrollViewFromViewController:toViewController:]
UIKit [UINavigationController _startTransition:fromViewController:toViewController:]
在我的应用程序的初始视图控制器上,我的代码是 在super.viewDidLoad()方法调用
之后创建bannerViewoverride func viewDidLoad() {
super.viewDidLoad()
// create the banner
bannerView = GADBannerView(frame:CGRectMake(0, self.view.frame.size.height - 50, self.view.frame.size.width, 50))
bannerView.adUnitID = adMobUnitID
bannerView.rootViewController = self
bannerView.hidden = true
bannerView.adSize = kGADAdSizeSmartBannerPortrait
let request = GADRequest()
bannerView.loadRequest(request)
self.view.addSubview(bannerView)
}
非常感谢任何建议。感谢!!!