How to create a FullScreen iPhone Application
In this short tutorial I’m going to show you how to build an FullScreen iPhone application. This article might be useful for everyone who wants to create a game for the iPhone platform. You will need the Apple Developer tools and the iPhone SDK installed on your computer to finish this tutorial.
Take 1: Interface Builder
Create a new project with the View-Based Application template.

Double-Click FullScreenViewController.xib to open Interface Builder.

Go to the Attributes Inspector panel (Shortcut: Cmd + 1) and set Status Bar to None.

Go to the Size Inspector panel (Shortcut: Cmd + 3) and resize the View to 320 by 480 pixels.

Save your file, close Interface Builder and go back to your XCode project. Click Build and Go to run your application in the iPhone Simulator. You will see that the Status Bar is still there.

Take 2: Edit the Info.plist file
Double-Click Info.plist file in XCode to edit the file. Add an extra Key/Value pair and set its Key to UIStatusBarHidden.

Change the Value Type of UIStatusBarHidden to Boolean. A checkbox will now apear in the value column.

Click the checkbox to do the FullScreen magic.

Build the Application again and see that the Status Bar is now hidden in the iPhone Simulator.

Download the project
You can download the example project.
Related Articles
Browse Articles
Comments (5)
From:Harold Campbell
Date:05.04.2009
This works exactly as described. Thanks.
From:Mark
Date:24.01.2010
Nice tutorial, much easier than other full screen methods and very nicely explained. Thank you!
From:BUDDAx2
Date:25.04.2010
Its nice. But how to create one view without status bar and other one with?
From:Jan Vantomme
Date:26.04.2010
You can hide or show the status bar programmaticaly with this line of code:
[[UIApplication sharedApplication]
setStatusBarHidden:YES animated:NO];</pre>
Popular Articles
- Introduction to openFrameworks
- Creating 3D Shapes with Hemesh
- Mirroring Video with openFrameworks
- An Introduction to colorLib
- How to create a FullScreen iPhone Application
Popular Tags
- processing (90)
- software (50)
- web design (40)
- art (39)
- css3 (37)
From:Jan Vantomme
Date:05.04.2009
No problem.
Top · Permanent link to this comment