You have added NavigationBar
from the controls to your ViewController
ie the reason it is looking like this.
To solve the problem remove that NaviagtionBar
from your controller and embed the NavigationController
to embed to NavigationController
follow this steps.
Select Your ViewController.
Go to the "Editor" menu and select "Embed in" inside that select "Navigation Controller". So it should like Editor->Embed In->Navigation Controller
.
Edit: To change the color and title pragmatically add below code in viewDidLoad
.
navigationController.navigationBar.barTintColor = [UIColor redColor];//Set your color
//To set title
self.navigationItem.title = @"YourTitle";