uiimagepickercontroller

Swift 3 select multiple photos using UIImagePickerController

青春壹個敷衍的年華 提交于 2019-12-12 09:42:30
问题 I have a UIImagePickerController which with it I select a photo from Library, or take a photo with Camera and then show the selected photo in a UIImageView . I want to upload this photo later to an API (which still don't know how to upload photos, have never done it). So what I want is a feature like WhatsApp selecting photos feature which you can select let's say 20 photos and then you can see them. (I mean for my case I only have one UIImageView and can only show one photo. What is the

UIImagePickerController - Save and Retrieve photo from Apps Document Directory

南笙酒味 提交于 2019-12-12 09:27:56
问题 This is driving me crazy! I'm successfully saving a photo to my applications document directory from both the camera and if I choose an existing one from the camera roll. The code to do this is as follows. Note I know this part is working because in the simulator I can browse to the apps Documents folder and see the file being saved. Example "save" code: //Note: code above snipped to keep this part of the question short case 1: { // select from library NSLog(@"select from camera roll"); if(

Asset Library issue in iOS - 5

心已入冬 提交于 2019-12-12 09:12:52
问题 i am using asset library for getting image from url , my code is ALAssetsLibraryAssetForURLResultBlock resultblock = ^(ALAsset *myasset){ ALAssetRepresentation *rep = [myasset defaultRepresentation]; CGImageRef iref = [rep fullResolutionImage]; UIImage *largeimage; if (iref) { largeimage = [UIImage imageWithCGImage:iref]; } [self customeButtonCreated:self]; NSData* thumbImageData = [[NSData alloc] initWithContentsOfFile:imagePath]; btn1.frame = CGRectMake(x, y, WIDTH, HEIGHT); [btn1 setTag

iPhone Camera - Choose from Library or Take Photo

旧巷老猫 提交于 2019-12-12 08:58:15
问题 Please look at the image below !! So in this image... You can see a pop-up from the bottom which gives the user 3 options when he 'taps' the 'Camera' button. What is that view ? Is it a modal view controller which gets dismissed when an option is selected ? Edit: So it is UIActionSheet ! I have one more question on this, but StackOverflow would love it if I could edit the question rather than putting up a new one. So yes.. The option "Take Photo" uses the UIImagePickerController, and the

Is it possible to show UIImagePickerController in iphone in landscape mode? [duplicate]

ε祈祈猫儿з 提交于 2019-12-12 06:27:28
问题 This question already has answers here : UIImagePickerController in Landscape (9 answers) Force landscape orientation in UIImagePickerController (3 answers) Closed 5 years ago . My application is in Landscape. I am using UIImagePickerController to record a video . But whenever we call the UIImagePickerController , it is coming in portrait mode. I decided to rotate the layout of imagep picker controller by using UIImagePickerController` Subclass. Through this, image picker controller layout is

How to use switch between different modes in UIImagePickerController's custom controls?

时光怂恿深爱的人放手 提交于 2019-12-12 06:24:10
问题 picker.showsCameraControls = NO; picker.cameraOverlayView = someView; As I will add some custom view to showCameraControls, then how can I switch in between modes, like native app of iphone switches between camera and recording, same as I want to switch between camera and one more camera having button on it, how can I do it? Help ! 回答1: This sample project shows you how to make your own custom overlay for the UIImagePickerController, and how to use it. For more info on what each of the

Using presentModalViewController with UIImagePickerController causing Crash on iOS 5

亡梦爱人 提交于 2019-12-12 05:32:16
问题 Using presentModalViewController with UIImagePickerController causing Crash on iOS 5 (its running fine on version<5), i am trying to get all the albums on the device, using 'UIImagePickerControllerSourceTypeSavedPhotosAlbum' is only getting the Camera images, so when i change the sourceType to 'UIImagePickerControllerSourceTypePhotoLibrary' it crashes, i appreciate any help, here is my code: float version = [[[UIDevice currentDevice] systemVersion] floatValue]; if(version < 5) imgPicker

UIImagePickerController mediatype kUTTypeMovie runtime exception

£可爱£侵袭症+ 提交于 2019-12-12 04:57:34
问题 I am developing an iPhone App where I need to only view all the videos present in the Photos Library of a device. I am using the following code UIImagePickerController picker = [[UIImagePickerController alloc] init]; picker.mediaTypes = [NSArray arrayWithObject:(NSString*)kUTTypeMovie]; I have imported and added the MobileCoreServices framework to my project. It works great on the iPhone 3GS, running on iOS 4.3, but when I run it on my iPod Touch, having iOS 4.2.1, it shows a runtime

Can the selected images from library be stored in an array?

半世苍凉 提交于 2019-12-12 04:56:23
问题 I have built a sample project on camera and library. Now, my question is can I store the images that I am selecting from library into an array? I am using this code. UIImage *chosenImage = info[UIImagePickerControllerEditedImage]; [self.arrImages addObject:chosenImage]; Now by placing breakpoints, I came to know that, in my array always 1object is storing even after I chosen images for more than one times. Can anyone give my any idea how can I do it? Any help is highly appreciated. 回答1: Try

Manual unwind segue from UIImagePickerController fails with 'Receiver has no segue with identifier'

自闭症网瘾萝莉.ら 提交于 2019-12-12 04:48:14
问题 I've almost finished converting a large Universal app to use Storyboards, but have one issue that is stumping me. I have created a Scene for a custom UIImagePickerController, but I can't figure out how to unwind from it. I know I could just dismiss the controller, but I want to use the unwind process to pass the image back to the original source view controller. When I try to do the manual unwind, I get the following exception: 'NSInvalidArgumentException', reason: 'Receiver (