Loading...

Develop your own iPhone App – Hello World!!

| 24-Feb-2015 |

Below here is some cool information regarding iPhone app development that will run in the iPhone simulator. With the classic way of teaching programming, we’ll create a “Hello World!” application as our first one.

iPhone-developers-keyideas

Creating the new project

If you have installed the iPhone SDK/Xcode, then you can open Xcode by going to Programs/Developer/Applications. Once there, you can double click on the Xcode application.

Once Xcode launches, click File/New Project. Under the iOS section on the left side of the resulting window, select “Application.” Select “View-based Application” from the templates that show up on the right side, and then click the ‘Choose’ option. You will then prompted to give some name to a project, this will also be the name of your application, so choose your project name carefully.

You’re project has now created, and the Xcode window that is displayed, contain all of your resources and code. You can also select the ‘Build & Go’ option in the toolbar, and the application will compile and run in the iPhone Simulator. This is a fully functional application, but it doesn’t do anything productive at this point, the greater usefulness of any app is up to your knowledge and coding, but Apple also supplies you with the base code and other dependencies.

Let’s open the main window .xib file.

Once it loads, it will display a mockup of an iPhone OS view. This view can have objects (buttons, text, etc.) placed on it, and linked to the code. However, let’s make sure the Library window is open: Click Tools > Library, In the Library, you will find all of the components that can make u an iPhone application. In the Library window, select “Objects,” and then click Library; in the search box type “text.” The search results will return two objects, but the one we want is the “Text View,” so drag that to the ‘Hello World View Controller’ window, and the object will create. You can type whatever you wish, but we’ll use “Hello World!”

iPhone-app-development-keyideas

Once you have your text typed, select File > Save, from within IB; the information will be saved in the .xib file. Now close it, you should see the Xcode application still opened.

Running your “Hello World!” iPhone app

Select ‘Build and Go’ from the toolbar, it will save the current project, fully compile the source code (along with the .xib file), and run it inside of the iOS simulator. If you get some errors while compiling, make very sure that the build settings are set to ‘Simulator – iPhone OS’.

Your application must run in the simulator and display the text “Hello World!” So, congrats on your first iPhone application! Now you’re ready to start writing much cooler apps that take full advantage of the iPhone.

#iPhoneapps #iPhoneappdevelopment #appdevelopers #iPhonedevelopers #applicationdevelopment #iOSapps #iOSdevelopers


All Blog Posts
contact us today




captcha