2

I can not get the iAd banner to show up anywhere other than the top of the screen when i am trying to integrate it into my sprite kit game which is locked in landscape mode. this is what i have in my view controller.m

- (void)viewDidLayoutSubviews
{
[super viewDidLayoutSubviews];

_adview = [[ADBannerView alloc] initWithFrame:CGRectZero];
_adview.delegate = self;
[_adview setFrame:CGRectMake(0, 0, 1024, 768)];
[self.view addSubview:_adview];
//[_adview setAlpha:0];

SKView * skView = (SKView *)self.view;

// Create and configure the scene.
MyScene * scene = [MyScene sceneWithSize:skView.bounds.size];
scene.scaleMode = SKSceneScaleModeAspectFill;
scene.viewContoller = self;

// Present the scene.
[skView presentScene:scene];
}
LoganHenderson
  • 1,222
  • 4
  • 12
  • 24

1 Answers1

0

My answer to a similar question my help you out.

Also try initliazing the ad banner in viewWilllayoutSubviews, instead of viewDidLoad.

How can I place a SpriteKit AdBanner at the Top of the View?

Community
  • 1
  • 1
jgnovak-dev
  • 495
  • 3
  • 11