jjzjj

ImagePickerController

全部标签

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

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

iphone - UIImagePickerControllerDelegate 没有正确响应

我在iPhone3G上使用iOS4.2.1中的UIImagePickerController。我以前使用过弃用的方法-(void)imagePickerController:didFinishPickingImage:editingInfo:没有问题。我有另一个应用程序在另一个应用程序中使用新的didFinishPickingMediaWithInfoAPI,并且选择媒体后选择器永远不会调用该方法。//MyViewController.h@interfaceMyViewController:UIViewController//MyViewController.mif([UIImageP

iphone - iOS 7 UIImagePickerController 相机覆盖静态图像

iOS7使用UIImagePickerController拍照两次,第二次会显示覆盖相机的静态图像,如何重置相机。我试着一张一张拍,一共拍了5张。它适用于iOS6。在iOS7上,第一次可以正常使用,但是第二次拍照时,屏幕上会出现静态的暗图像,如何清除或重置,虽然拍照有效,但用户看不到相机会捕捉到什么。boolfistTimeToShow=YES;-(void)viewDidAppear:(BOOL)animated{if(fistTimeToShow){fistTimeToShow=NO;self.imagePickerController=nil;[selftackImage];}}

ios - 使用 map (苹果或谷歌)的应用程序经常因内存压力而被杀死(主要发生在进入相机时)

描述我的应用程序只使用了35-70mb,有时在报告中被35mb杀死。原因总是vm-pageshortage从任何mapView转到相机(重复N次。在具有大量可用RAM的设备上,当然需要更长的时间)您将开始(很快(!))收到内存警告砰(被杀)这适用于任何使用MKMapKit或GoogleMaps的应用程序。我想这与一些图形数据有关,这些图形数据没有出现在仪器中,而是出现在VM中。这在IOS6中没有发生GMSBugTracker问题与DEMO代码https://code.google.com/p/gmaps-api-issues/issues/detail?id=6209&thanks=6

objective-c - XCode - 显示/删除 NSDocumentDirectory 中的文件

我的应用程序有一个带有这些代码的“浏览”按钮,允许用户浏览iPad的照片库,选择一张照片并使用NSDocumentDirectory将其存储到应用程序中。-(IBAction)BrowsePhoto:(id)sender{UIImagePickerController*imagePickerController=[[UIImagePickerControlleralloc]init];imagePickerController.delegate=self;imagePickerController.sourceType=UIImagePickerControllerSourceType

objective-c - UIImagePickerController 不会录制视频

我想用UIImagePickerController录制视频。我的问题是方法[imagePickerControllerstartVideoCapture];总是返回0。我正在使用运行iOS5.1的iPhone4S测试应用程序。有人可以帮我解决这个问题吗:-(IBAction)playButtonPushed:(id)sender{if([UIImagePickerControllerisSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]){UIView*videoView=self.videoViewControl

iphone - UIImagePickerController 内存泄漏

在我的iPhone应用程序中使用UIImagePickerController时,我看到了巨大的内存泄漏。我正在使用苹果文档中的标准代码来实现控制:UIImagePickerController*imagePickerController=[[UIImagePickerControlleralloc]init];imagePickerController.delegate=self;if([UIImagePickerControllerisSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]){switch(butto

ios - 如何在显示时裁剪 UIImagePickerController 拍摄的照片

当我使用UIImagePickerController拍照时,图片比屏幕上可见的要多...我怎样才能拍照/裁剪它,使其与我在屏幕上看到的完全一样?编辑:我将添加代码来说明我的问题:-(void)showImagePickerForSourceType:(UIImagePickerControllerSourceType)sourceType{UIImagePickerController*imagePickerController=[[UIImagePickerControlleralloc]init];imagePickerController.modalPresentationSt

ios - 单独类中的图像选择器 Controller 委托(delegate)不起作用

我是Xcode和Swift的新手。我目前正在玩StartDevelopingiOSApps(Swift)Apple教程。到目前为止一切正常,除了一件事。本教程在主ViewController类中处理ImagePicker委托(delegate),使其符合UIImagePickerControllerDelegate和UINavigationControllerDelegate协议(protocol)。我想尝试其他方法并将委托(delegate)移动到单独的类。这是我所做的:importUIKitimportFoundationclassMealPhotoDelegate:UIViewC

ios - 调用 imagePickerController 后隐藏状态栏

无论我做什么,当我打开图像选择器时,状态栏一直出现,并且在关闭后不会消失。我尝试了我能够在此站点上阅读的各种快速解决方案,这些解决方案应该可以解决问题,但根本无济于事。这是我的工作。我将选择器Controller子类化:classMyImagePickerController:UIImagePickerController{overridefuncviewWillAppear(animated:Bool){super.viewWillAppear(animated)self.setNeedsStatusBarAppearanceUpdate()}overridefuncviewDidA