ios5 - On dismiss view iAds becomes black in ios 5 ipad.(dark black) -
i have tab based application. have created iad object in app delegate class , using in 3 view controller class. it's working on second tab's screen , third tab's screen. on second tab there table view, when clicking row of table view navigate new view have used same code iad. on clicking iad, iad screen opens in landscape mode , when closing screen becomes black , log following.
[adhostwindowcontroller supportsorientation:]: message sent deallocated instance 0x100bc740 i created object in app delegate this:
self.bannerview = [[adbannerview alloc]init]; [self.bannerview setdelegate:self]; i'm adding banner in view controllers this:
[[[self appdelegate] bannerview] setframe:cgrectmake(0, hightofview-180, 768, 66)] all view controllers in portrait iads open in landscape mode. working in ios 6, not ios 5 on ipad. how fix this?
my guess problem not related iads rather memory issues. seems object of class kind adhostwindowcontroller being deallocated prematurely.
my advice make sure adhostwindowcontroller is not released i.e (retaincount>=1) before supportsorientation: called it. (which after iad opens).
for diagnosis: try logging retain count of adhostwindowcontroller (then maybe retaining 1 more time) before opening iad , see happens.
Comments
Post a Comment