tags:

views:

406

answers:

3

How many pixels is the available area for an image view in iPhone?

A: 

Google is your friend: http://www.google.com/search?hl=en&q=iphone+screen+resolution&btnG=Google+Search&aq=0&oq=iphone+screen+res

(short answer: 480 x 320)

drewh
Google is our friend, but StackOverflow is our best friend. ;)
Erick Sasse
+7  A: 

If you need to, you can have access to the full 480x320 screen with something like this:

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
self.navigationController.view.bounds = CGRectMake(0,0,320,480);
self.navigationController.navigationBar.hidden = YES;

You will also find useful this info I found in this post:

Status bar: 20 pixels Nav bar: 44 pixels Tab bar: 49 pixels Toolbar: 44 pixels

Hope it helps.

Pablo Santa Cruz
Here's another method to hide the status bar, this one will actually hide it while the application is loading (and displaying your loading screen)http://www.satosoft.com/?p=19
Kevin Laity
Don't completely rely on these numbers. For instance the status bar can be 40px height if there's incoming phone call, the nav bar and toolbar can be smaller in landscape mode, and not to mention the 1024x768 iPad.
KennyTM
A: 

Here's a visual representation of the dimensions of the specific elements mentioned by Pablo.

paul_sns