iOS Development: Hello World! in Xcode

This tutorial will teach you how to develop your first “Hello World” application for iOS using Xcode.

In this article, I will show how the standard “Hello World!” application can be developed in the iOS framework. In this tutorial, I will be using Xcode 4.1 to develop this simple example. Therefore, the screenshots and code that will be supplied with it will apply specifically to that version of Xcode.

First, start a new project by selecting File > New > New Project. There are several options for project types. For this tutorial, select the “Window-based Application” project type under the “Applications” section.


   
For this tutorial, input “HelloWorldAppTutorial” for the “Product Name” and “None” for the “Company Name” and “iPhone” for the “Device Family”. Later, these fields will be used to define the applications that are developed in a more defined manner. Also, the device family limits the features to those depending on the device you are currently programming for.

After you have created the project, the main Xcode window should appear. Open the file “HelloWorldAppTutorialAppDelegate.m” and insert the following code into the didFinishLaunchingWithOptions method.


Finally, run the program in the iOS Simulator using the “Run” option in the upper left-hand corner of the main Xcode window. The output of the simulator should resemble this the following image:


 

[gp-comments width="770" linklove="off" ]

chat sex hikayeleri Ensest hikaye