objective c - How to solve this wrong ADBannerContentSizeIdentifierPortrait is Deprecated in IOS 6.0? -
i updating app in ios 8, adbanner shows wrong, how solve issue. 'adbannercontentsizeidentifierportrait'is deprecated:first deprecated in ios 6.0 , 'requiredcontentsizeidentifiers' deprecated :first deprecated in ios 6.0. code, please check one.
adview.requiredcontentsizeidentifiers = [nsset setwithobject:adbannercontentsizeidentifierportrait]; adview.currentcontentsizeidentifier = adbannercontentsizeidentifierportrait;
replace lines with:
[adview setautoresizingmask:uiviewautoresizingflexiblewidth];
Comments
Post a Comment