5
有谁知道使用新方法而不是sizeFromBannerContentSizeIdentifier
,这在iOS 6中已弃用?sizeFromBannerContentSizeIdentifier在iOS 6中已弃用,替代方法?
有谁知道使用新方法而不是sizeFromBannerContentSizeIdentifier
,这在iOS 6中已弃用?sizeFromBannerContentSizeIdentifier在iOS 6中已弃用,替代方法?
没有其他方法。您可以使用框架属性,它也会为您提供广告视图尺寸。
CGSize adSize = adView.frame.size;
可以使用bounds
属性 -
CGSize myBannerSize = myBanner.bounds.size;
苹果并没有取代sizeFromBannerContextSizeIdentifier
- 你需要使用bounds
。