2012-10-15 40 views

回答

1

没有其他方法。您可以使用框架属性,它也会为您提供广告视图尺寸。

CGSize adSize = adView.frame.size; 
1

可以使用bounds属性 -

CGSize myBannerSize = myBanner.bounds.size; 

苹果并没有取代sizeFromBannerContextSizeIdentifier - 你需要使用bounds

相关问题