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]
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
Unrelated to your problem, when you run your project on your iOS 6 simulator or device are you actually seeing test iAds?
I am not seeing any test iAds in the simulator at the moment in iOS 6, but I do see them in iOS 5. I heard the problem is on Apple's end and this also happened for the release of iOS 5 last year, where the serving of iAds for the new iOS was delayed.
If you see a test advertisement in the iOS 5 simulator or device, then you can trust that it will work normally on iOS 6 once Apple starts distributing iAds for iOS 6 users. :)
Check out my new game Super Skateboarder on the App Store! Super Skateboarder
Replies
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeIf you see a test advertisement in the iOS 5 simulator or device, then you can trust that it will work normally on iOS 6 once Apple starts distributing iAds for iOS 6 users. :)
Super Skateboarder
Check out my apps on the App Store!
All my Apps
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome