Added a category on UINavigationController and added a method to it.