how to make a iPhone Hello World App
welcome to my 1st tutorial of iPhone Development.
This is a 4 step guide to program your first iPhone App.
1)
Open Xcode, create a new project by selecting New Project and the click on the icon labeled View-Based Application, this is the simplest of all templates. Save your project and you are ready to start.
2)
On the left, you have the Groups & Files Pannel, and in that, you will find the Classes Folder, the folder where you will spend much of your time. This is where most of the code that you write will go, since this is where all Objective-C classes belong, you are free to create subfolder under the Classes folder to help organize your code.
There is also a very important folder that is the Resources folder. Start by clicking on Hello_WorldViewController.xib and that will automaticly open the Interface Builder application.
3)
You can create a simple button either by instantiate and object of type UIButton (like this: UIButton *myButton = [[UIButton alloc] initWithFrame:aRect];)
or dragging a button from a palette of interface objects onto your application“s main window.
Scroll down through the list of objects in the Library paletter until you find one called Label. Drag it to the view pannel, and go back to Xcode, save your project and click on the Build and Run Button. Be amazed, your 1st Application was created. Using the iPhone Simulator, or your iPhone(if your a payed iPhone developer) you will notice that you application has a very bad looking icon. go ahead and open Photoshop and make a nice PNG at 57x57px
Dont worry about rounding edges, cause the iPhone OS will round the edges and give it that nice glassy appearance. Just create a normal flat, square image.
4)
After your masterpiece is done, drag it to the Resources folder in you Xcode Project. Next, we need to specify that this particular image should be used as our application“s icon. To do that, open the Info.plist file in your resources folder. In the Icon file property double click the empty value and type the name of your icon.
Save your project and click on the Build and Run button. While on iPhone Simulator click on the home button of the iPhone simulator, your will notice you now hava a awesome icon.
Congratulations, you got your first iPhone application, and you did note write a single line of code.



