iphone – 自定义UIImagePickerController的后退按钮?

iphone – 自定义UIImagePickerController的后退按钮?,第1张

概述如何在UI ImagePickerController中自定义“相册”后退导航按钮为“照片”? 我试试运气 任何想法如何自定义相册后退导航按钮. UIImagePickerController *albumPicker = [[UIImagePickerController alloc]init];[albumPicker setDelegate:self];[albumPicker set 如何在UI ImagePickerController中自定义“相册”后退导航按钮为“照片”?

我试试运气

任何想法如何自定义相册后退导航按钮.

UIImagePickerController *albumPicker = [[UIImagePickerController alloc]init];[albumPicker setDelegate:self];[albumPicker setSourceType:UIImagePickerControllerSourceTypePhotolibrary];popOverController = [[UIPopoverController alloc]initWithContentVIEwController:albumPicker];[popOverController presentPopoverFromrect:CGRectMake(0,templatePhotoplaceholderVIEw.frame.size.height/2,templatePhotoplaceholderVIEw.frame.size.height) inVIEw:templatePhotoplaceholderVIEw permittedArrowDirections:UIPopoverArrowDirectionAny animated:NO];[popOverController setPopoverContentSize:CGSizeMake(320,480)];[albumPicker release];

我想自定义相册,照片显示在图像和保存的照片到照片
怎么做我尝试它不适合我

解决方法
- (voID)navigationController:(UINavigationController *)navigationController willShowVIEwController:(UIVIEwController *)vIEwController animated:(BOol)animated {    UINavigationItem *ipcNavbartopItem;    // add done button to right sIDe of nav bar    UIbarbuttonItem *donebutton = [[UIbarbuttonItem alloc] initWithTitle:@"Photos"                                                                   style:UIbarbuttonItemStylePlain                                                                   target:self                                                                   action:@selector(saveImages:)];    UINavigationbar *bar = navigationController.navigationbar;    [bar setHIDden:NO];    ipcNavbartopItem = bar.topItem;    ipcNavbartopItem.Title = @"Photos";    ipcNavbartopItem.rightbarbuttonItem = donebutton;}

这解决了问题的问题.

总结

以上是内存溢出为你收集整理的iphone – 自定义UIImagePickerController的后退按钮?全部内容,希望文章能够帮你解决iphone – 自定义UIImagePickerController的后退按钮?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1084078.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存