草庐IT

UIImagepickercontroller

全部标签

ios - 如何获取照片库图像数量

这个问题在这里已经有了答案:GetnumberofimagesinPhotos.app?(2个答案)关闭6年前。从Photolibrary中提取图像我们使用UIImagePickerViewController和UIImagePickerControllerSourceTypePhotoLibrary进入Photolibrary并获取图像,现在我的问题是如何获取保存在我的photoLibary中的图像计数。它是否允许我获取要在我的应用程序中显示的图像数。

iphone - 使用相机作为 subview

我在我的应用程序中使用UIImagePickerControllerSourceTypeCamera,但我想将相机View添加为subview。不是模态视图。现在我正在使用UIImagePickerController*picker=[[UIImagePickerControlleralloc]init];picker.sourceType=UIImagePickerControllerSourceTypeCamera;picker.delegate=self;[selfpresentModalViewController:pickeranimated:YES];我想像这样使用它,但似

objective-c - 如何将照片库或相机中的图像添加到我的 Ipad 应用程序?

我想从照片库或使用相机将图像添加到我的iPad应用程序。我使用了与iphone相同的编码。但是应用程序崩溃了。我认为这不是将图片从库添加到iPad应用程序的正确方法。如果有人知道请帮助我。-(void)ctnPhotoSelection{isMyCtView=YES;UIActionSheet*actionSheet=[[UIActionSheetalloc]initWithTitle:@""delegate:selfcancelButtonTitle:nildestructiveButtonTitle:nilotherButtonTitles:@"TakePhotoWithCamer

ios - UIImagePicker 将图像保存到相机胶卷 Ipad

所以我正在拍摄相机(Ipad、5.0、ARC),请允许我拍照。拍照后它会为您提供预览。预览中的两个选项是“使用”和“重拍”。我不确定您尝试在何处定义照片名称并将其存储在相机胶卷中。即使通过NSLog,我也看不到任何带有使用按钮的东西。教程似乎也不适合我。有一个Ipad专门针对大多数人引用的技术百科。 最佳答案 所以你正在使用UIImagePickerController在iPad上拍照,你想知道如何保存它?为此,您需要成为UIImagePickerController的委托(delegate),然后实现以下方法:-(void)ima

iphone - 如何像 [self Method_Name]; 一样使用 self 调用方法;当方法名称很长时 Like -(void)imagePickerController : (UIImagePickerController *)

我是iPhone开发新手。我想知道如何使用self调用方法,例如:[selfMethod_Name];当方法名很长的时候-(void)imagePickerController:(UIImagePickerController*)pickerdidFinishPickingImage:(UIImage*)imageeditingInfo:(NSDictionary*)editingInfo{...}W想使用self调用imagePickerController方法。我尝试用以下方式调用它:[selfimagePickerController];//CrashHere但是代码总是在这一行

iphone - UIImagePickerController 相机不在照片库中保存照片

有没有人遇到过这个问题?我正在使用UIImagePickerController相机通过我的应用程序拍照,我注意到照片在拍摄后没有存储在照片库中。我已经在带有iPhone4的iOS5和带有iPhone5的iOS6上都试过了,结果相同。以下是我的设置方式:UIImagePickerController*imagePickerController=[[UIImagePickerControlleralloc]init];if([UIImagePickerControllerisSourceTypeAvailable:UIImagePickerControllerSourceTypeCame

iphone - 设置使用 iPhone 相机捕获的图像类型

如果我们使用iPhone相机拍摄照片,默认情况下图像将以JPEG格式保存。我想将捕获的图像保存为其他格式,如PNG。可能吗?当我们从我们的应用程序调用iPhone相机时,是否可以通过代码执行此操作,我们可以设置图像类型,它必须在捕获图片后保存吗?我的意思是在拍照之前打开相机并设置类型? 最佳答案 UIImage*image=[infoobjectForKey:UIImagePickerControllerOriginalImage];//pngimagedataNSData*pngData=UIImagePNGRepresentat

iphone - UIImagePickerController.cameraViewTransform 忽略翻译

我的应用程序无法在iOS4.3上正常运行。它为UIImagePickerController使用自定义相机View覆盖。由于相机和屏幕之间的宽高比差异,默认情况下实时取景底部有一个黑条。为了摆脱它,我曾经应用两个转换,将View向下移动并将其缩放到全屏:self.cameraFeed=[[UIImagePickerControlleralloc]init];CGAffineTransformtranslate=CGAffineTransformMakeTranslation(0.0,25.0);self.cameraFeed.cameraViewTransform=CGAffineTr

iphone - ipad 中的 itunes 库工具

我正在开发一个无法在我的应用程序中访问iPod视频的应用程序。所以我正在考虑集成iTunes。这样我就可以从iTunes商店和商店下载视频它到本地目录,从那个目录我可以播放视频。我可以在popOverController中播放照片库中的视频,但无法在中播放-(IBAction)SelectVideo:(id)sender{UIImagePickerController*ImageVideoPicker=[[UIImagePickerControlleralloc]init];ImageVideoPicker.sourceType=UIImagePickerControllerSourc

ios - UIImagePickerController 出现,但相机不会在 iOS 5 上启动

我有一个应用程序,其中显示源类型为UIImagePickerControllerSourceTypeCamera的UIImagePickerController。一切正常,除非我离开应用程序并返回(启用了多任务处理,因此应用程序从停止的地方返回)并且我再次显示UIImagePickerController。它出现在屏幕上,但相机从未显示,相机显示的动画从未发生,这是屏幕截图:如果我按下取消键并再次显示UIImagePickerController,相机将正常显示。所以唯一一次出现这个问题是我回到应用程序后第一次呈现UIImagePickerController。有人知道为什么会这样吗?