RobCos
RobCos

Reputation: 113

Disabling iAD with inApp purchase

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

Answers (1)

pasawaya
pasawaya

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

Related Questions