Your view controller must be inside of a navigation controller. Make sure your view controller is the root view or one of the view controllers in self.navigationController.viewcontrollers
If it is not contained inside of a navigation controller, you will have no bar.