I want to know how we can change the navigation bar title of UIImagePickerController. I tried several ways but couldn't do it.
tried the follwing ways,
imgPicker.title = [NSString stringWithString:@"My Name"];
imgPicker.navigationItem.title = [NSString stringWithString:@"My Name"];
But it still gives me the default title called "Photo Albums".Can anyone please tell me how to do it?....
Thanks....
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With