Changing NavigationBar Title of UIImagePickerController
I found the way to do it. When you set your UIImagePickerController delegate to self and implement the following method it worked.
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[viewController.navigationItem setTitle:@""];
}
Found it from this link http://forums.macrumors.com/showthread.php?t=533216
Thanks...
This should allow you to set the title (the previous answer had a typo):
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[viewController.navigationItem setTitle:@"Choose A Photo"];
}
Swift
IOS 8 || 9
func navigationController(navigationController: UINavigationController, willShowViewController viewController: UIViewController, animated: Bool)
{
viewController.navigationItem.title = "video" // Change title
imagePicker.navigationBar.tintColor = .whiteColor() //Text Color
imagePicker.navigationBar.titleTextAttributes = [
NSForegroundColorAttributeName : UIColor.whiteColor()
]
}