ios - ADMOB Memory Leaking? -
Whenever a new advertisement comes, I am using Swift language for ADMOB, my memory is increasing. I think there is a leaking without any other AdMob everything is fine
difference on:. ViewWillAppear Function GADInterstitial Override (Animated: BULL) {difference = GADInterstitial () inter.delegate = self inter.adUnitID = "****" on request: GADRequest = GADRequest () request.testDevices = ["***"] Inter.loadRequest (request)}
and I am using UIActionAlert to appear in the
self.inter.presentFromRootViewController (manually )
Memory report link:
Am I doing something wrong? I am using ARC, can I release interstitials
by myself?
EDİT :
I tried GADBanner
as well. I'm just opening the app; I am not doing anything else and the memory is increasing.
viewWillAppear function override (animated: boole) {banner = GADBannerView () banner.delegate = self banner.adSize = kGADAdSizeSmartBannerPortrait banner.adUnitID = "****" var Request: GADRequest = GADRequest () banner.rootViewController = self-request.testDevices = ["****"] self.view.addSubview (banner)}
< P> To prevent you from memory leaks, destroy ()
Need to call banner and intermediate w Advertisements are the intermediate ads on both sides of the system once, so you have to destroy them. Banner ads can be reused, but once you have used them, delete ()
.
Comments
Post a Comment