Reputation: 113
I'd like to hide the iAD banner when the user buy the inApp purchase, is it sufficient to "removefromsuperview" the adbannerview or i need something more?
Upvotes: 1
Views: 2260
Reputation: 11595
If you used removeFromSuperview
, you would also have to have some code to place content there when you removed the ads, or you can have content there already and when you remove the ads, they become visible again.
I think you should do something like this in your viewDidLoad:
if(removeiAdsPurchased){
[iAd removeFromSuperview];
content.hidden = NO;
}
Upvotes: 1