Storyboard in iPhone
In this article I explain something new for creating iPhone apps using a storyboard.
In this article we create a single view application. Here we use a storyboard in place of xib. To move from one view to another view, we create another viewcontroller class. To do this we add a uiviewcontroller class and perform the following.
Select the appdelegate.m class and right-click on it ->choose new file ->select Objective C class ->click on next ->by default the class name ViewController is shown when you choose subclass UIViewController, change the name to what you want. If you want to use xib then mark on it -> click on next -> select the location where you import the view controller class in the project.
In this article I use two buttons and two labels from outlet and add it to the story board. To better understand use the following instructions.
Select Xcode and go to the file menu.
Create a New XCode Project by clicking on it.
Now select Single View Application and click on Next.
Now provide your Product Name and click on Next.
Select the location where you want to save your project and click on Create.
Now we add the UIViewController Class:
Select storyboard and perform linking:
Here we select the button using the mouse and press the right mouse button to perform linking or select action modal.
Do the same for button 2.
Now select which Platform you want to see output for.
Output 1 in iPhone
Output 2 in iPhone