This category "UIViewController+NavigationBar" is a helper to
- Set the title of back button in navigation bar
- Set image as the title view in navigation bar
- Copy the UIViewController+NavigationBar.h/.m to your project.
- Import the "UIViewController+NavigationBar.h" in your UIViewController.
- The category methods are ready to use NOW.
Create a backBarButtonItem for the previous ViewController.
Check this post iOS Set Navigation Bar Back Button Title for more insight into setting the back button title,
Set Image as the NavigationItem titleView; if image height > 44, resize it.