How large are iAd banners on Retina Displays? - ios

A quick search gave me the following info about iAd banner sizes. But with retina devices such as the new iPad, is the height of an iAd double, ie. 132px?
"For iphone its height is 50 for potrait and 32 for landscape For ipad its height is 66 for potrait and 66 for landscape"

I'm fairly sure iAd banners are the same size in points on retina devices, meaning they will occupy the same space on the screen but with higher pixel density. This Apple documentation suggests this is true.

The iAd Banner use a real size of your display and not the resolution (this inside a xcode) if you use a iAd Producer is better make your banner ever strong and good resolution.
In fact the iAd Banner have not a resolution but use the real dimension of display for example:
iPhone5 portrait is 320x586, but the resolution of Retina is 640x1136px, the dimension of iAd in this case is 320x50 and is the same on any display Large 320, same happen on iPad.
if you want you can learn more on developer apple, here you can find the instruction and samples code: DeveloperApple iAd Guide
Hope this help you to understand :)

Related

Define slide over screen width in runtime

For my app's purposes I need to know all possible screen sizes when getting some content from internet. It's turned out to be hard to define screen widths for iPad Split View/Slide Over modes. F.e.: iPad Air 2 has 320px app's window width in slide over, but iPad Pro - 375px in the same mode. It's definitely not 33% of full width claimed by Apple. Thanks.

How to Support All iPhone Screen Sizes

I have an app in Xcode 6.2 with the storyboard supporting all devices. For some reason, whenever I load the application on the iPhone 6+, or iPhone 4s, or iPad, the screen doesn't take the size of the iPhone/iPad. However, on an iPhone 6, 5s, and 5, the screen takes the full size of the iPhone. Why is this? I am very unfamiliar with sizes and how to properly support all sizes. Right now, I have set the screen sizes in the storyboard for each view controller to 320 x 568. The width is "Compact" and the height is "Any".
If this has anything to do with this, my iPad screen comes out blank. It's just white. Apple recently rejected my external testers app submission due to this.
I have done lots of research on these 2 questions, but I had a hard time understanding anything, as I am new to iOS Development.
To properly handle varying sizes and how that affects your layout you will want to use auto layout. Check out this great tutorial from ray wenderlich to get you started. Once you get started feel free to post more specific questions about any roadblocks you run into. Good luck!
http://www.raywenderlich.com/64392/video-tutorial-beginning-auto-layout
When you want your app to work on any device, ideally you should keep the width and height both set to "Any". You should switch to "Compact" or "Regular" width or height only if you have any requirement specific to a particular device. To understand things in detail read more on Size classes. It is very nicely documented in this Apple developer site.
iphone:
iphone 4- 320x480
iphone 5- 320x568
iphone 6- 375x667
iphone 6plus - 414x736
and also ipad:
ipad mini - 768x1024
ipad air - 768x1024
ipad pro 10.5 - 834x1112
ipad pro 12.9 - 1024x1336

Can I set custom ad banner sizes for Portrait iPhone/iPad

iAd and AdMob's banner sizes only perfectly fit iPhone 4's and 5's. However, according to storyboards size, at least in terms of width, the perfect width size for iPhone 6 for a banner = 375. For iPhone 6+ perfect width for banner = 415. On Admob site for banner sizes, there is no supported width size 375 or 415. Even if I add Admob's Smartbanner code, it still doesn't have the 375, 415 sizes for the iPhone6, 6+ width. Same thing goes for iAd. What do i do then? Can I just make the custom size? I tested with test ads with these custom sizes and simulator and device work fine with them. However, will Apple accept this? Or is there another way to make ad banners fit full width size of phone?
I wish I could give you a definite answer as to what Apple would do, but I can tell you the iAds in my apps in the App Store work fine at multiple widths in the different iPhones.

iOS8 and iAd: Adding an AdBannerView in Storyboard - What size does it need to be?

If I add an iAd in Storyboard, what size does this frame need to be? I want my app to be universal for all iPhones and iPads, so how do I do this correctly?
For an iPhone, the BannerView should be 50 points by 320 points in Portrait view and 32 points by 480 points in Landscape.
For an iPad, the BannerView should be 66 points by 768 points in Portrait view and 66 points by 1024 points in Landscape.
From what I can see the iOS iAd Programming Guide does not cover the concept of using size classes, so you may want to use 2 different Storyboards for your app. I have provided a link to Apple's documentation below.
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/iAd_Guide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009881-CH1-SW1

iAd banner on iPhone 6 wrong size?

Ok so I'm upgrading my iOS app to take advantage of the iPhone 6's larger display but iAd is still showing ads of the iPhone 5s dimensions (both on the banner and when you select the advert).
There's an annoying blank space either side of the banner, and a full frame of blank space around the view when the advert is selected.
My app has a correct iPhone 6 launch image and is showing native resolution (no scaling). Grateful if anyone can give me a pointer as to where I am going wrong.
The iAd frame is configured and sized with this code and placed at the bottom of the screen:
[_UIiAd setFrame:(CGRectMake(0, screenHeight - 100, screenWidth, 50))];
It looks like this:
It turns out that iAd is actually working fine, but Apple has not yet modified the dimensions of the test ad to suit the iPhone 6 and 6 Plus.
Update 25th Nov 2014 - Apple has now updated iAd banners to display the correct dimensions.

Resources