I am using UIActivityViewController to share and save images in my app. Right now, images get stored in global Camera roll. I want to save it to app's own album.
To do that, I had to exclude UIActivityTypeSaveToCameraRoll from UIActivityViewController and add my own custom SaveImageActivity. Now problem is that the activity comes at the last. How do I change the order to bring my custom UIActivity to the front?
Similar queries show that this is not possible to do. How is Dropbox app able to do it then?
Related
In my app, I am allowing the user to select photos from the album, but here I want to hide iCloud images for selection. I found this solution but not working for me, the iCloud image is visible to select. Picker should show local images and camera roll images for selection.
I tried below AssetCollection subtypes:
PHAssetCollectionSubtypeAlbumMyPhotoStream : found iCloud image PHAssetCollectionSubtypeSmartAlbumUserLibrary: found iCloud image
Any idea how to do that? Which PHAssetCollectionSubtype should have to use?
What do you mean exactly with iCloud images?
There is the iCloud Photo-Library. The images are just normal assets in the All Photos album. There is no way to hide them as the iCloud Photo Library does not differantiate between what's on the device and what's in the Cloud. The only thing you can do is prevent network access (cloud download), when you request the full resolution image/data, video data for the asset.
There are "Shared Photostreams and "My Photostream". These are not part of "All Photos" and in separate albums. These you can just exclude by not including the albums in the interface
I want to show users only picture/video taken in my app on camera roll.
So, when user click gallery button, my app only show "my app" album.
Is this possible ?
You can do one thing
When you save your picture captured by your camera, you can save then specific folder like "AppName-Photos" so each photos save in that particuler folder and when you retrive album just take only photos when there is album name "AppName-Photos" and ignore others
To save photos to your own custom album you can refer this link : iOS save photo in an app specific album
To Fetch only custom album photos you can refer this link: iPhone : Photos framework : how to get only those album/images which created by my app only not by others?
I have an app, which saves photos to the iOS photo library, and also lets user share, using UIActivityViewController.
I tried emailing myself the saved images using the Mail app, and also tried sharing the photo with myself by selecting Mail from the share pane.
Both images have 1920x1080 resolution, but the one which was programmatically saved is 1.5MB and has 96DPI, whereas the one that was shared is 200KB and has 72DPI.
Is there any way to use UIActivityViewController to let the user share a full-resolution image?
On an iphone, if you hold down on an image while in safari, a diaglog pops up asking you if you want to save or copy the image. If saved, the image is downloaded straight to your camera roll. If I wanted the user to save images to my app as conveniently as they are saved to the camera roll from safari, how would I go about doing that?
You should be able to set up your app as being able to open image files of the desired types (.jpg, .png, etc) by adding the appropriate settings to your info.plist, and that should cause the system to add an "open in" item to the sharing dialog in Safari.
I want to save a UIImage in different folder which is displayed in album section of Default Photo application of iPad. I am able to save photo in album "Saved Photos" using UIImageWriteToSavedPhotosAlbum function. but i also want to save it in different album which is already created. Whether it is possible in iPad ? if Yes, then how can I achieve this task ?
Please suggest