uiimagepickercontroller

Needs to display iPhone gallery images as thumbnails in UITableViewCell

三世轮回 提交于 2019-12-25 16:51:07
问题 In my application,I am allowing user to select one or multiple images from gallery and as the user is selecting the images,I am storing all the url in an array - (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info { [self dismissViewControllerAnimated:YES completion:nil]; for (NSDictionary *dict in info) { url = dict[@"UIImagePickerControllerReferenceURL"]; [self.images addObject:url]; NSLog(@"array value:%@",self.images); [self

UIImagePickerController crash on iOS 5

Deadly 提交于 2019-12-25 12:43:13
问题 UIImagePickerController *ii_picker= [[UIImagePickerController alloc] init]; ii_picker.delegate=self; ii_picker.sourceType=UIImagePickerControllerSourceTypeCamera; add_photo=NO; [self presentModalViewController:ii_picker animated:YES]; [ii_picker release]; This used to work fine till I updated to iOS 5 on my iPhone. Something strange... Problem isn't in the code. It's working in blank project! If I paste it to any place in my project's code, it's crashing. If I change

UIImagePickerController - SourceType Camera - Allow taking photo only portrait orientation

醉酒当歌 提交于 2019-12-25 12:04:36
问题 I want to prevent user from taking photo at the landscape orientation and allow only portrait. Is there a way you know to accomplish this? Thanks in advance! 回答1: There are different things to consider here: 1) you want the camera button not to change for Landscape orientation (to indicate Portrait orientation only).You can achieve this by having custom controls and having your own Camera Control Bar. camController.showsCameraControls = NO; // this will disable the default controls

UIImagePickerController - SourceType Camera - Allow taking photo only portrait orientation

旧街凉风 提交于 2019-12-25 12:04:21
问题 I want to prevent user from taking photo at the landscape orientation and allow only portrait. Is there a way you know to accomplish this? Thanks in advance! 回答1: There are different things to consider here: 1) you want the camera button not to change for Landscape orientation (to indicate Portrait orientation only).You can achieve this by having custom controls and having your own Camera Control Bar. camController.showsCameraControls = NO; // this will disable the default controls

How to convert video path to NSData

放肆的年华 提交于 2019-12-25 09:16:52
问题 I have used DKImagePicker for fetching multiple videos from gallery. Able to fetch video but not getting convert to NSData . And also receiving error from server. Error Domain=NSCocoaErrorDomain Code=257 "The file “IMG_0040.MOV” couldn’t be opened because you don’t have permission to view it." UserInfo={NSFilePath=/var/mobile/Media/DCIM/100APPLE/IMG_0040.MOV, NSUnderlyingError=0x172e5f6b0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}} May be not converted to NSData

Access all the photos of user album in iphone using application

纵饮孤独 提交于 2019-12-25 08:21:10
问题 I am working on one application in which i need to show slide show of the user selected photo album, UIImagePickerController only returns the selected image. I want all previous and next images of the selected image, is it possible with UIImagePickerController and if not is there any other way that i can do it. Thanks in advance, Satish 回答1: You'll have to create a custom picker to select an album instead of an image. You'll want to use ALAssetLibrary to get a list of albums via

Why doesn't UIImagePickerController delegate to my Object class?

元气小坏坏 提交于 2019-12-25 07:48:40
问题 class CameraPicker: NSObject, UIImagePickerControllerDelegate, UINavigationControllerDelegate { weak var viewController:MyProfileVC! func launchCamera() { if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.camera) { let imagePicker:UIImagePickerController = UIImagePickerController() imagePicker.delegate = self imagePicker.sourceType = UIImagePickerControllerSourceType.camera imagePicker.cameraDevice = UIImagePickerControllerCameraDevice.front imagePicker

Warning message after actionSheet buttons are pressed

£可爱£侵袭症+ 提交于 2019-12-25 04:22:21
问题 I am very new to iOS development and have encountered an error that I just can't seem to find a solution for. I have searched for solutions everywhere, but maybe it is my newness that is preventing me from seeing the problem. The exact warning that is printed in the log is: Attempt to dismiss from view controller <_UIAlertShimPresentingViewController: 0x7aaa4b90> while a presentation or dismiss is in progress! It occurs right after I touch a button on the actionSheet. Here is the code: -

cameraoverlayview not transformed in updated version ios4.3

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 03:41:19
问题 I designed a small camera application, in which I rotated and translated camera overlayview in order to fix in desired position, it worked fine , when i updated to ios 4.3 it didnt worked, initially, it displays transformed view after few seconds the view changed to portrait . I did not understand what went wrong.., Please help me.. 回答1: I've noticed this with my app as well. Seems like the cameraOverlayView in iOS 4.3 is assumed to be the size of the screen e.g 320x480. See this post for an

How can I keep track of media created/chosen by UIImagePickerController?

青春壹個敷衍的年華 提交于 2019-12-24 16:25:42
问题 I'm building an iOS app that allows the user to upload videos from UIImagePickerController, either by recording or choosing them from the Camera Roll, as well as also play the chosen video. My question is, how would I go about keeping a reference to the videos that have been chosen this way? I want to do this so that if the video is still present on the device, I can use the local file rather than streaming the uploaded file. When imagePickerController:didFinishPickingMediaWithInfo: returns,