Simple "Hello World" App

Here, We start our first IOS project in Xcode platform version 6.4. Our project is create and run only IOS. So, First that download and will install Xcode. 

Step 1- Now,we start first iOS project simple “Hello World”.That’s for we are giving info you can follow it after installed Xcode. 

Step 2-Now, open Xcode ->Create a new Xcode project ->  Single View Application -> Next as shown in below
.


Step 3-After that give name of Xcode product name here we are giving ‘Simple’ show below then give next and create.

Step 4-Now we are going main.storyboard  there we are showing below type window. Here, we are show storyboard screen very large don’t worry click on identity and type in this Interface Builder Document  -> use out layout.  

Step 5-Now then we showing below type message click on “Disable Size Classes”.
Here you can showing below our screen became a larger then small.

Step 6-After that we are going object library that given bellow of screen’s right side and search label and button.
            That drag and drop on our main.storyboard screen.  

Step 7-From the Editor Selector button in the workspace toolbar found on the top right corner as shown below.
then select assistant editor button.

Step 8-For make property event we are select ViewController.m file to ViewController.h file that given below type you can make.

Step 9-We will see two window in our editor are in the centre one is “Main.storyboard” file and the “ViewController.h” file.

Step 10-Now, Right click on the label and select,hold and drag the new referencing outlet as shown below. 


Step 11-That drop  between two curly braces.Then give outlet of label and write Name of label below type and completing by clicking on “connect”.


Step 12-Same as on button select,hold and drag and drop below curly brace and select connection “Action” then give name “buttonView” then completing by clicking connect.

If you are tire go to HERE.

Step 13-After that we are showing window as below type .

Step 14-Here, you can change button mane by double clicking below type another way to go on right upper side “Attributes Inspector”->title. 

Step 15-Now, you are go on “ViewController.m” file and write code between two curly brace here given.


- (IBAction)buttonView:(id)sender {
    
}

Step 16-Then write code in this.

labelView.text = @"Hello World";

You can write bellow type


- (IBAction)buttonView:(id)sender {
    
    labelView.text = @"Hello World";
    

}


Step 16-After that run project clicking below showing button.


If you are tired you can go to this Link. 





Police & Law Enforcement