Does anyone know the new method to use instead of sizeFromBannerContentSizeIdentifier
, which is deprecated in iOS 6?
There is not other method. You can use the frame property, it gives you the ad view size as well.
CGSize adSize = adView.frame.size;
You can use the bounds
property -
CGSize myBannerSize = myBanner.bounds.size;
Apple didn't replace sizeFromBannerContextSizeIdentifier
- you'll need to use the bounds
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With