0

I am trying to remove a "AddBannerView" that has been created in a Storyboard and referenced in the UIViewController in this way:

@property (nonatomic,weak) IBOutlet ADBannerView *banner;

The problem is that when I call [self.banner removeFromSuperview] nothing happens (I have connected the banner with the controller so that is not the problem).

Any idea? Thanks

DJ Burb
  • 2,346
  • 2
  • 29
  • 38
Gerardo
  • 5,800
  • 11
  • 66
  • 94

1 Answers1

0

use these code instead of removerFromSuperview

[self.banner cancelBannerViewAction]

It Cancels an executing banner view action.