What are the supposed point size of iAd banners on iPhone as of now? I see quite some deprecated code in the reference itself. It's hard to find any exact information here. Are all banners 320x50 points regardless of orientation?
The documentation specifically says at this time:
iAd supports different banner sizes for portrait and landscape apps.
The exact size of advertisements depends on the device the banner is
being shown on. On an iPhone, a portrait advertisement is 320 x 50
points and 480 x 32 points for a landscape advertisement. On an iPad,
a portrait advertisement is 768 x 66 points and 1024 x 66 points for a
landscape advertisement. In the future, additional sizes may be
exposed by iAd.
I strongly believe that documentation, while being still online, is outdated.
And I have never gotten a 480x32 banner in my iPhone app, AFAIK.
Related
I have an app which has one viewcontroller which works for both landscape as well portrait mode, Now when app goes to the landscape mode and coming back to portrait, the keyboard doesn't appear at all until app quits.
The issues is not related to iOS 8.0 for sure, because it works well in iPhone 5S with iOS 8.0 but it doesn't work for iPhone 6 and 6+. Also checked the keyboard frame and its shows correctly, but the keyboard doesn't show up. Any suggestion would be of great help.
Or is there a way i can force the keyboard to show up.
Did you try adding Launch Images for both the iPhone 6 and 6+? Without specific Launch Images for the 2 new device resolutions, the app will basically pretend that the width is still 320px and just stretch everything out to fit the bigger screen. I have seen this cause many strange problems with the keyboard on iPhone 6 and 6+ devices, and it sounds like this may be the underlying issue here as well. Here are the Launch Image resolutions you need for both devices:
For iPhone 6:
750 x 1334 (#2x) for portrait ---
1334 x 750 (#2x) for landscape
For iPhone 6 Plus:
1242 x 2208 (#3x) for portrait ---
2208 x 1242 (#3x) for landscape
I m developing a universal app.I want to know will the screen resolutions (320 * 480) for iphone and (768 *1024 )in iPad will work for all iphone's (iPhone 3g,iPhone4 etc) and all iPads.Because based on these screen resolutions I m setting textField's, UILabel's width in both iPhone and iPad.Will these work for retinas and nonretinas ?
Retina iPhones and iPads use the same coordinate system as non-Retina devices. Presently all iPads have a logical coordinate space of 768x1024, and all iPhones except the iPhone 5 have a logical coordinate space of 320x480. Your code should work fine on both Retina and non-Retina devices.
On an iPhone 5, your app will be shown with black bars at the top of the screen unless you tell iOS that you want to use the full screen by including a Default.png for the extended screen resolution.
You can check the screen resolution with [[UIScreen mainScreen] bounds]. This value will be the same on Retina and non-Retina devices. You can detect a Retina device by checking the value of [[UIScreen mainScreen] scale]; the value here is the number of physical pixels per unit of logical coordinate space (1.0 for non-Retina, 2.0 for Retina).
UIKit and CoreGraphics work with points rather than pixels.
Both the retina and non-retina devices have the same number of points, but a different amount of pixels. This means that the same point values can mean a different pixel value on different devices.
To answer your question, yes the same layout UILabel widths will display the same on retina and non retina devices.
From the Apple Developer Documentation :
In iOS, all coordinate values and distances are specified using floating-point values in units referred to as points. The measurable size of a point varies from device to device and is largely irrelevant. The main thing to understand about points is that they provide a fixed frame of reference for drawing.
Have a look at the Points vs. Pixels section in the View Programming Guide:
http://developer.apple.com/library/ios/documentation/windowsviews/conceptual/viewpg_iphoneos/WindowsandViews/WindowsandViews.html#//apple_ref/doc/uid/TP40009503-CH2-SW15
You can always use the capabilities to get the OS and do what you need to your interface.
var pattern:RegExp = /iphone5/i;
var str:String = Capabilities.os;
if (str.search(pattern)==0)
{
trace('iPhone5 Detected. Alter height.');
}else{
trace('No need to change dimensions if developing at 960x640');
}
I am building an iPhone app interface and I know the dpi has to be 163, but when it comes to the size of the file, I was looking through all the recommendations and found 2 different answers...
Does anyone know what size should i set the Photoshop file at? The answers I have so far are:
"The screen on the iPhone is 480×320, minus the 20-pixel status bar (making a 460×320 working screen size). The screen shots on the App Store should not include the status bar."
"400 x 320 or
960 x 640 (iPhone 4)
You must also consider the landscape mode (320 x 400 and 640 x 960)"
I would really appreciate the answer. Thanks!
You can forget about DPI, the resolution is what is important for you.
So the answer is...
320 x 480 pixels for iPhone - iPhone 3GS (and iPod Touch, first -> third gen)
640 x 960 pixels for iPhone 4 and iPod Touch 4th gen
This is for full screen apps. This will help you a lot, when designing UIs for iDevices.
SD resolution (link)
Retina, HD resolution (link)
That's it...
Designing an app, you just need to use the right resolution.
So it is display resolution - top bar:
640x920 (retina without the top bar)
320x460 (iphone up to 3gs)
The Official Answer is in Apple's iTunes Connect Developer Guide, which you can download from iTunes Connect after logging in.
I recently uploaded some screenshots of my app to itunesconnect. All the screenshots are in landscape mode (I rotated them using iPhoto). On the itunesconnect page where I uploaded the screenshots they all appeared in landscape mode... fine. Now on another page in itunesconnect they all appeared in portrait mode (and they were squished). How will the images appear in the app store? Landscape just like I uploaded them? or perhaps I need to set something somewhere to let the app store know.
I just want to prevent my app from going live w/ squished screenshots.
Cheers!
You should be able to take your screenshots, rotate them 90 degrees, and upload them. Make sure the images are 480 wide by 320 tall, and you should be ok.
See this article for more info:
http://www.appsizematters.com/2010/06/appstore-screenshots-101/
or:
http://thesalon.blogspot.com/2010/02/how-to-submit-app-to-iphone-app-store.html
In particular, from the latter link,
Portrait Mode 320x460 Minimum; 320x480 Maximum - 72ppi, RGB, flattened, no trans, High quality jpg or TIFF image file format. Do not include the iPhone status bar.
Landscape Mode 480x300 Minimum; 480x320 Maximum - 72ppi, RGB, flattened, no trans, High quality jpg or TIFF image file format. Do not include the iPhone status bar.
This can be quite a confusing issue because iTunesConnect will show a landscape-oriented iPhone screenshot in landscape orientation, but when you view it from the iPhone app store application, the screenshots will be forced to portrait orientation.
A look at the iTunesConnect Developer Guide, page 13 provides some insight on Apple's reasoning:
To view a landscape mode screenshot on the device App Store, users will have to rotate their iPhone to view landscape.
So when viewing screenshots on the actual device, iPhones and iPod Touches switch any landscape-mode screenshots to portrait mode and the user must rotate their phone to landscape mode to see the screenshot correctly.
The good news is you can update your screenshots at any time. So do a little trial and error and you'll get it looking good.
I am developing a game which works only in landscape mode. When I import a launch image (Default.png) into my xcode proj and run it, the image appears in portrait mode and then the view starts in landscape mode. How can I make my splash/launch image be displayed in landscape mode only?
First thing is no one is gonna know from outside the application that application is gonna run in portrait or landscape.
If at all you still want to view the splash screen in landscape mode you have to design the image in such a way as we cannot change the behaviour of the splash screen.
Instead of designing the image as 320X480, design it as 480X320 and your problem will get solved.
hAPPY cODING...
Always create 320x480 and 640x960 sized pictures. Just name them Default.png and Default#2x.png. As Michael Kessler notes, to have them appear in landscape, you have to rotate the graphics in your gfx editor.
I quote Apple docs as they look as of now:
iPhone and iPod touch
Portrait 320 x 480 pixels, 640 x 960 pixels (#2x)
Landscape Not supported
iPad
Portrait 768 x 1004 pixels, 1536 x 2008 pixels (#2x)
Landscape 1024 x 748 pixels, 2048 x 1496 pixels (#2x)
http://developer.apple.com/library/ios/DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12
So you can see that landscape orientation of images are not supported for iPhone/iPod.