问题描述
我想对UIImagePickerController进行自定义,以允许用户从其相册中选择一张照片。我想知道如果以下是可能的,如果是这样,它是如何实现的:
I'd like to make customizations to a UIImagePickerController that allow the user to select a photo from one of their photo albums. I was wondering if the following is possible and if so, how it's accomplished:
1)更改导航栏的颜色在照片相册视图和视图
1) Change the color of the navigation bar on the "Photo Albums" view and the view that appears after a photo album is selected.
2)编辑两个视图上的按钮及其操作。
2) Edit the buttons and their actions on both of the views.
3)在两个图像选择器视图底部添加工具栏。
3) Add a toolbar to the bottom of both image picker views.
p>
推荐答案
好吧,看来我找到了一个解决方案。如果实现以下导航控制器方法:
Well, it seems I've found a solution. If you implement the following navigation controller method:
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
}
访问控制拾取器的导航控制器,并且还将向出现的每个视图控制器发送指针。所以我相信这两个项目,你可以操纵任何你喜欢。
It will give you access to the navigational controller that controls the picker, and also will send a pointer to each view controller that appears. So I believe with those two items, you can manipulate whatever you please.
这篇关于自定义UIImagePickerController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!