UIImagePickerController
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
// add done button to right side of nav bar
id appearance = [UIBarButtonItem appearanceWhenContainedIn:[self.navigationController class], nil];
[appearance setBackButtonBackgroundImage:nil forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
UIBarButtonItem *backBarButton = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:NULL];
navigationController.navigationItem.backBarButtonItem = backBarButton;
}

本文介绍如何在iOS应用中使用UIImagePickerController,并在导航控制器的顶部添加一个右侧完成按钮,以提升用户体验。
1万+

被折叠的 条评论
为什么被折叠?



