use*_*268 7 iphone objective-c ipad
如何在UIImagePickerController中自定义"相册"后退导航按钮为"照片"?
我试试运气
任何想法如何自定义相册后退导航按钮.
UIImagePickerController *albumPicker = [[UIImagePickerController alloc]init];
[albumPicker setDelegate:self];
[albumPicker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
popOverController = [[UIPopoverController alloc]initWithContentViewController:albumPicker];
[popOverController presentPopoverFromRect:CGRectMake(0,0,templatePhotoPlaceholderView.frame.size.height/2,templatePhotoPlaceholderView.frame.size.height) inView:templatePhotoPlaceholderView permittedArrowDirections:UIPopoverArrowDirectionAny animated:NO];
[popOverController setPopoverContentSize:CGSizeMake(320, 480)];
[albumPicker release];
Run Code Online (Sandbox Code Playgroud)
我想自定义相册照片已显示在图像和保存照片到照片如何做到这一点我尝试它不适合我
- (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;
}
Run Code Online (Sandbox Code Playgroud)
这解决了问题的问题.
| 归档时间: |
|
| 查看次数: |
5884 次 |
| 最近记录: |