photosframework Questions
4
I want to get all the photos of my custom album.
but instead what I get is the below error.
My Code
let collections:PHFetchResult = PHAssetCollection.fetchAssetCollections(with: .album, subtype: ...
Worthless asked 5/9, 2019 at 10:5
8
I'm trying to get PhAsset object. I want to segregate iCloud assets. Here is my code,
PHFetchResult *cloudAlbums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeAlbum subty...
Leptorrhine asked 12/8, 2015 at 13:25
1
Following on from my previous question, and according to (among others) this question, the localIdentifier of a PHAsset doesn't persist across devices (after the photo syncs over iCloud).
How can ...
Galvan asked 8/1, 2016 at 22:17
6
Solved
I need to use the AVAsset object, in order to play it using AVPlayer and AVPlayerLayer. I started using the Photos framework since AssetsLibrary is deprecated. Now I got to the point where I have a...
Disagreeable asked 28/9, 2015 at 16:19
11
Roughly 10% of the time PHImageManager.defaultManager().requestImageForAsset returns nil instead of a valid UIImage after first returning a valid though "degraded" UIImage. No error or other clue t...
Maladjustment asked 24/6, 2015 at 21:58
0
I'm trying to create a scaled down version of a video selected from the users photo album. The max dimensions of the output will be 720p. Therefore, when retrieving the video, I'm using the .medium...
Calle asked 26/3, 2021 at 14:15
8
Solved
So I am using the SwipeView library (https://github.com/nicklockwood/SwipeView) to show images using the Photos framework for iOS8.
However, when I call the requestImageForAsset I notice I am gett...
Titty asked 27/12, 2014 at 18:38
5
Has anybody idea how to fetch squared thumbs from PHImageManager? PHImageContentModeAspectFill option has no effect.
[[PHImageManager defaultManager]
requestImageForAsset:(PHAsset *)_asset
targe...
Collectanea asked 24/9, 2014 at 17:52
1
I need to be able to merge videos taken with the time lapse function in the Camera app on iOS and export as a single video.
However, even if I try to export a single, unchanged time lapse video t...
Seed asked 15/9, 2017 at 15:33
3
Solved
I can request a video PHAsset using the Photos framework in iOS8. I'd like to know how big the file is on disk. There doesn't seem to be a property of PHAsset to determine that. Does anyone have a ...
Incisor asked 24/10, 2014 at 14:27
5
Solved
App crashes if photo access permission is not granted and the object which asked for permission is about to deallocate.
Apple's sample code (for Photos framework) crashes too.
My app crashes with...
Benghazi asked 21/10, 2015 at 18:10
1
Solved
I want to do some work on a user's photo library. Since the library can be huge, I want to do it in the background. I'm wondering whether it is safe to perform asset fetches (like PHAsset.fetchAsse...
Medusa asked 15/6, 2017 at 9:1
2
I'm trying to use smartAlbum to generate an array of either only videos or only photos or both.
You can see my code below:
PHFetchResult *collectionList = [PHCollectionList fetchMomentListsWithSu...
Philosophy asked 23/2, 2016 at 23:52
4
Solved
I'm using the photos framework on iOS8.1 and requesting the image data for the asset using requestImageDataForAsset... Most of the time it works and I get the image data and a dictionary containing...
Friulian asked 27/1, 2015 at 12:22
1
Solved
My app has a custom photo picker that uses the Photos framework to browse albums and select a photo. I have isolated reports of a very specific bug that occurs only if the user (a) has iCloud Photo...
Scummy asked 8/2, 2018 at 2:35
6
I have a photo I want my user to be able to share on Instagram and I need to get the local file directory of the photo.
However I am fetching my images as a PHAsset (not the ALAsset all the other ...
Shebeen asked 4/2, 2015 at 17:39
3
I am getting this error when I am trying to play multiple videos using this swift library (https://github.com/piemonte/player). Not sure if it's related to that player, or to the Photos framework o...
Elizbeth asked 13/1, 2015 at 4:23
2
Solved
I am trying to convert UIImage into PHAsset but could not find any solution. All I found is the vice versa (i.e. PHAsset to UIImage).
The scenario is, I am fetching images from a custom directory ...
Mediterranean asked 5/5, 2016 at 6:33
4
Solved
This appears easy, but the lack of documentation makes this question impossible to guess.
I have pictures and videos on my app's icloud drive and I want to create thumbnails of these assets. I am ...
Blitzkrieg asked 10/9, 2015 at 2:38
4
I'm trying to save a big batch of photos into the Photos library using the new PHAssetChangeRequest class in iOS 8. Problem is, it looks like the daemon that saves the photos is itself crashing une...
Charisecharisma asked 3/10, 2014 at 16:29
10
Solved
I'm converting our app over to use the Photos Framework of iOS8, the ALAsset framework is clearly a second class citizen under iOS8.
I'm having a problem is that our architecture really wants an N...
Phoebe asked 24/9, 2014 at 20:1
1
Solved
I'm maintaining an app for uploading photos from iPhone to a backend service. Currently this service doesn't support the new HEIF format, so is there any way to have the Photos framework convert th...
Unesco asked 15/10, 2017 at 19:51
2
I am using a UIImagePickerController to let the user choose a photo or video to share in the app. When the user chooses a media item in their Library, I execute this code in one of the UIImagePicke...
Biebel asked 16/12, 2014 at 3:7
2
I am writing an app which saves a photo stored in a custom album and associates other information with it in an object. The object is then saved in core data. I would like to store a reference to t...
Rambow asked 12/12, 2015 at 6:27
8
Solved
The following code loads images that are also located on iCloud or the streams images. How can we limit the search to only images in the camera roll?
var assets = PHAsset.fetchAssetsWithMediaType(...
Rousseau asked 8/9, 2014 at 18:31
1 Next >
© 2022 - 2024 — McMap. All rights reserved.