I'm developing an iOS app using Swift 2.0. Actually I'm facing a problem using UICollectionViewControllers to select multiple cells and preserve selection.
What I'm trying to do is to provide the user to select their images from Camera Roll, Facebook or Instagram. So far, I present the photo albums to the user in a PhotoAlbumsTableViewController and show the images in a PhotoCollectionViewController after the user select an album. Everything is working correctly until now.
Now, I want to preserve the selected photos on each album after the user returns to the AlbumsViewController to allow the user to select multiple photos on the Camera Roll then get back and select some others on the Instagram album and then click a Done button to show all the selected images. Any ideas?
Thanks in regards.
Related
I basically want the ability to check first within two specific dates if a user has taken any pictures on his phone. If so, if he clicks a button in my app the photo viewer (ideally exactly the same as used in the Photos app) should be opened and only these pictures/videos should be displayed. Then the user can look at them, share them, basically also the exact same functionality as the Photos app offers. But how can I do that? So far it seems I would have to code this completely from scratch, since I don't want the user to "pick" any picture but just look at them, share them etc. Or is there any SDK for this?
hey I'm new in iOS app developing world...
I had open the gallery and selected only one image and displayed on image view.
Now I want to select multiple image from Gallery.
So my question is
How should I select multiple image from Gallery in iOS and display on UIImageView???
UIImagePickerController doesn't support multiple selection by default, but you can use libraries like QBImagePicker to achieve that.
Generally you should not pick multiple images from iOS native picker so
from UIImagePickerController you can get only one picture. If you need to pick more you need a custom image picker, such as ELCImagePickerController. It works well! You can download it here.
Can you suggest a best library available for photo slider ?
I am getting 400+ photos live url.
Currently i am displaying in uicollectionview.
When user select 150 at row only one photos should be load and open full size. IN that full side next and previous button must be there so user navigate to next photo.
So pls tell me best library name.
Reference . https://github.com/NYTimes/NYTPhotoViewer
Thanks in advance.
I am trying to write an app which involves picking a picture from either camera or library. Once the picture is picked , I want to show the preview of the picture.It happens by default when camera is opted. Once the photo is clicked, it shows the user to choose or retake. But I want the same to be done when the picture is selected from the photo library also. Can this be done??
Ok thanks for the response. Here is what I did:
Subclass UIImagePickerController . Upon picking an image, I am pushing another viewcontroller which is similiar to preview screen. This is similiar to facebook app and so I think it will get approved by apple.
I may be wrong, but I think you need to implement the custom view yourself. You can use the delegate callback method to get the selected image and put it on your custom view along with buttons (choose or retake).
If you launch the Photos app on iPad (iOS7) and tap the action button, you get a UIActivityViewController whose top half is made of a multi-select gallery, from within which you can select any number of items. The sharing options automatically adjust from your selection (for example "Twitter" and "Assign To Contact" disappear if you select more than one item).
I have found nothing that appears to support this in the iOS7 SDK, so I wonder if this feature is unavailable to developers. Does anyone know how such a thing can be done?
When using a UIActivityViewController you can set an array of items that you wish to share. Normally this is just an image and maybe a string (for tweeting an image, for example) however if you add multiple images to the array that you use in - (id)initWithActivityItems:(NSArray *)activityItems applicationActivities:(NSArray *)applicationActivities; you can share more than one image (and such 'Assign to contact' or 'Tweet' aren't available because they need only one image).