Tab Bar Using StoryBoard in IPhone

Introduction

In this article I will create a Tabbed application. Here I use a Single view from outlet and add to it a label and image view or connect it to the main tab bar controller. In this article I didn't write a single line of code. I will pick a UIview from outlet and put it on the Storyboard Class. It is a best example of storyboard. 

To better understand it use the following.

Step 1

Open XCode by double-clicking on it.

Step 2

Create a New XCode Project by clicking on it.

Step 3

Now Select Tabbed Application and click on Next.

tabbed-application-in-iphone.jpg
 

Step 4

Now provide your Product Name and Company Identifier.

Step 5

Select the location where you want to save your project and click on Create.

Step 6 

Now add the view on the Storyboard.

add-uiview-from-outlet0in-iphone.jpg

Now add a label to the view.

add-label-from-outlet0in-iphone.jpg

Now add an image view.

add-imageview-from-outlet0in-iphone.jpg

The Storyboard class is:

storyboard-in-iphone.jpg

Step 7

Now run the application and see the output.

Step 8

Output 1 in iPhone

output1-in-iphone.jpg

Output 2 in iPhone

output2-in-iphone.jpg

Output 3 in iPhone

 output3-in-iphone.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all