Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

Landscape iAd banners in iOS 6? [EDIT: Landscape phased out completely]

Shayizzle710Shayizzle710 Posts: 45Registered Users
I upgraded to Xcode 4.5 with the iOS 6 SDK, and of course, a lot of the code I had for a game that I was working on was fine with the iOS 5 SDK, but a lot of it is now deprecated with the iOS 6 SDK, including a lot of the code for iAd, especially ADBannerContentSizeIdentifierLandscape. So I was able to fix [most] of my code for the iAd and now the banner shows up, but only in the Portrait banner form. I tried to manually make the view into the dimensions of a Landscape iAd banner, but it still loads a Portrait banner, but chopped up at the bottom. This is shown in the code below:


self.bannerIsVisible = YES;
abanner = [[ADBannerView alloc] initWithFrame:CGRectMake(0.0, 0.0, 480.0, 32.0)];
//abanner = [[ADBannerView alloc] initWithFrame:CGRectZero]; <--- This makes it load in normal Portrait
abanner.delegate = self;
[self.view addSubview:abanner];


Of course, Apple's iAd documentation doesn't really help as it on mentions ADBannerContentSizeIdentifierLandscape is deprecated, but with no alternative. How would I go about making the actual Landscape banner, but without using the deprecated code?

EDIT: So after making a new XIB in a sample project in Xcode and playing around with the iAd banner view, it seems like the Landscape banners have been phased out completely in favor of the iPhone 5, so we will only be able to use Portrait banners from now on...
Post edited by Shayizzle710 on
Check out my new game Super Skateboarder on the App Store!
Super Skateboarder

Check out my apps on the App Store!
All my Apps

Replies

Sign In or Register to comment.