Developing Your First iOS Application

2014-07-28

Christian Crawford

Developing Your First iOS Application

Beginner guide to developing iOS applications using Xcode and Objective-C.

Developing an iOS application may seem like a daunting task for one to complete, especially if you are not familiar with the Objective-C language and its syntax. However it’s actually not all that difficult to create a basic hello world like application with very little knowledge of the language.

The first step in creating the application is to launch Xcode. Once you have made it to the first screen you should click on create new Xcode project and then choose the “Empty Application” option and hit next.

Now that you have seen your application in action you will next create a new class file and chose the Objective-C class. This file will be the view controller and should be named like (Projectname)ViewController and the UIViewController should be chosen from the subclass drop down menu.

Now to it’s time to make the button perform an action when pressed. You will begin by adding an IBAction method declaration to the header file, and then implement it in the implementation file to show a UIAlertView.

The only thing left to do is establish a connection between the button you made earlier and the show message method. Open the ViewController.xib file and press and hold the command key. Next click on the button and drag your cursor to the File’s Owner item in the left-side panel. Once you let go click on the showMessage option.