@dasblinkenlight gave me an idea for this, if he comes back, I will give him an answer.
It's dirty, but this is the only thing that worked:
-(void)displayAd {
self.fullAd = [MobclixFullScreenAdViewController new];
self.fullAd.delegate = self;
self.adController = [UIViewController new];
[self.fullAd requestAndDisplayAdFromViewController:self.adController];
[[[[UIApplication sharedApplication] delegate]window] addSubview:self.adController.view];
}
- (void)fullScreenAdViewControllerDidDismissAd:(MobclixFullScreenAdViewController*)fullScreenAdViewController{
[fullScreenAdViewController.view removeFromSuperview];
[[[[UIApplication sharedApplication] delegate]window] setNeedsLayout];
self.adController = nil;
}
setNeedsLayout is the key, but I called it in the window, not in the adController add-in.
source
share