I'm relatively new to XCode and I m building Photo Collage App ..
I don't understand how to allow the user to pick multiple images from the UIImagePickerControler to create their collages.
UIImagePickerController only allows one image to be selected at a time.
You have to use something else for multiple images to be selected in one go.
For my own projects, I use ELCImagePickerController.
Unfortunately, you can not select multiple images with UIImagePickerControler. But you can use ELCImagePickerController for this purpose.
Use ALAssetsLibrary instead of UIImagePicker...
read ALAssetsLibrary class reference on http://developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/ALAssetsLibrary_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40009722
Related
Been searching already, and there might be duplicates, but I don't have a clean solution for a newbie.
I want to use the default UIImagePickerController to take multiple photos only without showing the previews or dismissing the controller until I've taken a certain number of photos. Basically "clicking" away until you've taken, say, six photos. Then the Controller is dismissed.
Is there a way to do that without a custom class?
It is not possible using the default UIImagePickerController . You need to use a third party library to make this work.
Check This Links this may be helpful to you
How to select Multiple images from UIImagePickerController
How to pick multiple images from UIImagePickerController in ios
I m new in iphone.I need to know that how to get image from library without using UIImagePicker controller in iphone.
i m picking image from library through UIImagePicker and store image name in Database but i want to fetch that images back from library with name without UIImagePicker controller.
can anyone tell me how to do so?
The best way is uiimagePickercontroller. Or else You can save it in your database n retrieve it n display it on UIActionSheet as it will give look of imagepicker without using it.
First of all , using UIImagePicker controller is the best way to do this but imposes UI restrictions.
You can use ALAssetsLibrary to pick up images and show it in your own UI.
Third and the most dirty technique would be to pick the image from imagepickercontroller and save it in your documentsDir to pick from there in future(I would not recommend this technique but this is a way to do it without imagepickercontroller).
You can try NSFileManager to access files of the camera directory /User/Media/DCIM/. And then open the files and loading them into UIImageViews. Not sure on how Apple would react on this as you're accessing files outside your apps sandbox.
How do I use the uiimagepickercontroller to let the user pick multiple images at once? Also how would I display a checkmark next to the preview images as the user selects them?
This photo I found online illustrates what I would like to do:
You can't do that with the UIImagePickerController. You could replicate the functionality of the UIImagePickerController though. Check out this project.
Is it possible to share copy and delete image using UIImagePickerController in SDK3.0?
The UIImagePickerController class and it's delegate protocol are for capturing images that you can use within your application, either by using the camera (if available) or the photo library.
You can't use the interface provided by the UIImagePickerController for anything other than what is stated above.
You can however, use it to pick the image you want. Once that it done, you can do anything with that image within your app. If you want to create a similar interface to the UIImagePickerController, you can. You can then implement the copy and share functionality from there. I don't think you can delete images from the user's photo library though, so that may not be possible.
I have to create a photo gallery app in iPhone. It should function same as the Photos app which is shipped with iPhone. But it should show the images which I package with the app.
UIImagePickerController reads only the following source types.
UIImagePickerControllerSourceTypePhotoLibrary,
UIImagePickerControllerSourceTypeCamera,
UIImagePickerControllerSourceTypeSavedPhotosAlbum
I was thinking of adding the images bundle to the resources group in Xcode and make UIImagePickerController to read them and display.
Looking at the class references I found UIImagePickerController reads only from the resources mentioned above. Which means it can only pick the images from camera roll OR saved photo gallery OR allow user to take a pic and use it.
Does anybody know how to make UIImagePickerController read from custom source type or images?
OR
How to create a photo gallery app in iPhone :-)
Thanks,
AJ
I don't believe it is possible to make the UIImagePicker pick images from your own source. You will have to write the picker yourself (which, performance aside, doesn't seem to hard... Just a couple of UIImageViews in a UIScrollView).
Just today I started a open source UIImagePickerController clone, it is not perfect but it works quite ok. Feel free to fork http://github.com/jeena/JPImagePickerController