If you are looking to begin writing some apps, this is the guide for you! You have the Mac and you have an iPhone, which is the most important part of the process. Having the proper equipment is important in order to begin.

This first thing you will need to do is download and install iPhone SDK. This is providing everything needed to build the app. It has everything including XCode, iPhone Simulator, and interface builder. The best part about downloading SDK is that it is free! It is free for the purpose of learning, which is great for iPhone app development beginners. If you want to run the app or distribute it to the app store, it would cost $99.

When everything is installed you can begin. To properly start launch XCode. From there, select File then New Project to present the templates. The best template to use is the Web-Based Application. It will provide a starting point for any application. When you click Choose you will be asked to create a project name. This will help you organize the projects as more come to the plate.

Once the project is named, the XCode interface will appear. The important files that appear will be main.m, projectname.h, and projectname.m. The main function is where the single UIApplication object is created.

From here a view controller will be created. This is where the ‘File Name” will be held. To create a view controller, add another class to the project. Yes this may sound complicated. However, XCode has a template for it because it is such a common task. Just right click on the Classes folder and choose Add the New File. After you click next you will have to name the file, adding controller to the end of the file name can do this.

After this point the code will be formed to make something appear on the iPhone screen. You can create this by adding a UIView object. This task can be made easier by creating a CGRect object. After the CGRect is established you set up the view of the object set and the label will be displayed as text. To import the text established you must add the view controller property directly to the window to prevent memory leak. On a side note, when making theses properties they are defined in the .h file.

Finally when setting the get and set functions you use the .m file with @synthesize. When you see where your window property code is set, you can just place the code right under that. The last thing to do is release the reference to view controller with what is called the dealloc. The dealloc will be in the .m file already.

With all of this code you will have a home page to your iPhone app. To expand your app further it wont be difficult, because the code will be repeated in many places. So don’t hesitate to get started on your iPhone development.

Tags: iphone sdk, interface builder, web based application