Introduction
The sample in this article is a very simple program for beginners that provides a good start in iPhone/iPad application development. In this article we can print Hello Word in both the iPhone Simulator or the iPad Simulator.
Step 1
First search XCode (IDE) in Finder and open it.
Step 2
In XCode, you will see Create a New XCode Project; click on it.
Step 3
Now select Single View Application and click on Next.
Step 4
Now give your Product Name. Here I use Hello Word and Company Identifier Mcn Solutions and click on Next.
Step 5
Select location where you want to save your project and click on Create.
Step 6
Now you will see in the XCode Window six Objective C Classes which are automatically generated by XCode.
1.Appdelegate.h
2.AppDelegate.m
3.ViewController.h
4.ViewController.m
5.ViewController_iPhone.Xib
6.ViewContoller_iPad.Xib.
Here the first two delegate classes, Middle two UiView Controller Class of Objective C and the last two are a Nib file in respect of iPhone or iPad.
Step 7
Now we code in the View Controller Class and select ViewController.Xib file in Correspondence iPhone or iPad.
To set the alignment click on it.
Step 8
In Xcode, you will see a Property Window. From it we select Label and use drag and drop to put it on View Correspondence iPhone or iPad.
Here we take label from it.
Step 9
Now select which platform you want to see the output in.
Output
Thanks!!