Customizing a UIImagePickerController

[亡魂溺海] 提交于 2019-12-04 06:10:24

问题


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) Change the color of the navigation bar on the "Photo Albums" view and the view that appears after a photo album is selected.

2) Edit the buttons and their actions on both of the views.

3) Add a toolbar to the bottom of both image picker views.

Thanks in advance.


回答1:


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.



来源:https://stackoverflow.com/questions/7023164/customizing-a-uiimagepickercontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!