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:

https: // Www.dropbox.com/s/zjkt2f38rcy1ryr/Screenshot%202014-07-27%2020.17.18.png

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> https://www.dropbox.com/s/3gn3pq3s1w2gfdd/Screenshot%202014-07-27%2022.05. 51. Png </ p> </ div> <p> <div class =

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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -