我试试运气
任何想法如何自定义相册后退导航按钮.
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的后退按钮?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)