In this application we will see how to StoryBoard works in iPhone iOS 5.0. So let see how it will
worked.
Step 1: Open the Xcode, Create a new project using Single View Application. Give the application
“StoryBoardExample” and select the “Use Storyboard”.
Step 2: Select the MainStoryboard.storyboard, first drag the ViewController from the library and
place it to the under View Controller Scene (See the figure 1)
Step 3: Drag the UIButton from the library and place it to the view window. Select the button and
bring up Attribute Inspector and give the Title “Click Here”. Now Select the button and “control +
drag” from the button to the next view controller and select the “Model” (See the figure 2).
Step 4: Now select the second ViewController view and bring up Attribute Inspector select the
background color “Black”. Drag the label from the library and bring up Attribute Inspector and
change the Text “Hello iPhone!!!”. (See the figure 3)
Step 5: Now compile and run the application on the simulator.



