Introduction
In this article we create an empty view application and use a uiviewcontroller class to navigate from one view to another. For changing the style of the navigation bar we use code in the view load method of each view. In this I use two views, FirstViewController and SecondViewController.
Step 1
Open XCode by double-clicking on it.

Step 2
Create a New XCode Project via click on it.

Step 3
Now select Empty View Application and click on Next.

Step 4
Now give your Product Name, Company Identifier and click on Next.

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

Step 6
Now you will see in the XCode Window two Objective-C Classes that were generated by XCode; they are:
1. Appdelegate.h
2. AppDelegate.m
Now we add two UIViewController; for this we use the following procedure.
Step 7
Select the appdelegate.m class and right-click on it, as in:










Join the conversation! Your thoughts help the community grow.