I had the same problem.
When you receive a new ad, you must remove the previous ad from the parent view.
Otherwise, they overlap and consume memory.
Thus, after receiving more than 15 advertisements, the percentage of allocated memory remained constant.
Hope this helps you.
- ( void )displayBanner:( UIView * )banner { UIView * oldBanner = [ _bannerView viewWithTag:999 ]; if( oldBanner ) { [ oldBanner removeFromSuperview ]; oldBanner = nil; } banner.tag = 999; [ _bannerView addSubview:banner ]; }
source share