ARTICLE

Tab Bar Using StoryBoard in IPhone

Posted by Sachin Bhardwaj Articles | iPhone/iPad November 30, 2012
In this article I will explain the process of adding a view in the tab bar of the iPhone.
Reader Level:
Download Files:
 

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

Login to add your contents and source code to this article
post comment
     
COMMENT USING
PREMIUM SPONSORS
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.