phasset Questions

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

5

Solved

Working with new Photo framework, I can access the NSData of PHAssets using requestImageDataForAsset. I can also access the file URL using the PHImageFileURLKey of the returned info NSDictionary. ...
Ilysa asked 1/10, 2014 at 23:43

6

Solved

I am trying to reproduce the native iOS8 photopicker using Photos framework. I got a problem with the sorting. Lets say I do following: I edit a photo in Camera+ app and save it back to gallery...
Thrall asked 29/7, 2015 at 9:40

11

Solved

I'm attempting to create a UIImage (like a thumbnail or something) from a PHAsset so that I can pass it into something that takes a UIImage. I've tried adapting solutions I found on SO (since they ...
Ri asked 12/6, 2015 at 20:58

5

Solved

I wonder if there any way to get the original file name using PHAsset? I use the following code to extract the file info. [[PHImageManager defaultManager] requestImageDataForAsset:asset options...
Mclyman asked 21/9, 2015 at 4:32

3

Solved

I am actually creating an iOS app, and want to store some details about Photo Library pictures in an SQLite database. I also would like to be able to share this data across the different devices th...
Olag asked 24/2, 2015 at 7:30

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

8

Solved

Im trying to get the image name using PHAssets. But I couldn't find metadata for filename or any method to get the image name. Is there a different way to get the file name?
Sokoto asked 9/1, 2015 at 6:22

4

Solved

Is there a way to get the file size on disk of a PHAsset without doing requestImageDataForAsset or converting it to ALAsset? I am loading in previews of a user's photo library - potentially many th...
Ovarian asked 14/7, 2017 at 19:58

4

Solved

I want to put the videos stored on my iPhone to my Google Drive. I have already done with images, but with videos, it's an other problem... For images, no problem, I convert my asset to an NSData ...
Coprophagous asked 14/8, 2015 at 7:47

1

Solved

I'm using UIImageWriteToSavedPhotosAlbum to save images to the Photos app. This was the only function I found that lets you do this. Here's my code: import UIKit import Photos class ViewController...
Principled asked 2/1, 2021 at 23:12

2

in iOS 14 beta, is there a way to check if the app has permissions to load a PHAsset image before trying to load it with PHImageManager.requestImage? This is for PHAuthorizationStatus.limited - whe...
Molten asked 6/8, 2020 at 8:13

2

Solved

Is there a way to get the height and width of the image from a PHAsset object. I'm trying to make an image picker with a custom UICollectionViewLayout (Kind of like the main page of Pinterest app)...
Scholasticism asked 24/9, 2016 at 8:32

3

I'm trying to grab a thumbnail of the last photo taken on a device using the new Photos framework in iOS 8. The code I have right now to do this is the following: PHFetchOptions *fetchOptions = [P...
Lots asked 22/9, 2014 at 22:35

1

Solved

In WWDC20 apple introduced PHPickerViewController - the modern replacement for UIImagePickerController. I'm wondering if it's possible to retrieve PHAsset using the new photo picker? Here is my cod...
Selfcongratulation asked 28/6, 2020 at 17:11

4

Solved

I want to play video from PHAsset, collected from iOS Photos. PHAsset video nsurl (https://mcmap.net/q/387559/-nsurl-from-phasset) is valid to my own application lets say MyPlayer for few moments/b...
Lyndsaylyndsey asked 6/9, 2016 at 13:14

1

My goal is to upload original resolution device captured video files to S3 using AWSS3TransferUtility. User selects a video using UIImagePickerController however, if I pass info[UIImagePickerCont...
Depositor asked 22/11, 2017 at 13:48

9

Solved

iOS 13 beta4 no longer gives 1) PHImageFileURLKey 2) PHImageResultIsDegradedKey in image result info keys. Anyone knows a way to find the fileurl of the PHAsset?
Wongawonga asked 25/7, 2019 at 13:21

2

Solved

I am writing a photo album app which can access the photo from the user's photo library, add filter, and delete photo. I used the Photo framework to delete an asset with PHAssetChangeRequest.delete...
Nag asked 23/10, 2017 at 7:38

5

Solved

The docs say: PHImageResultIsInCloudKey: A Boolean value indicating whether the photo asset data is stored on the local device or must be downloaded from iCloud. (NSNumber) If YES, no image wa...
Paleogeography asked 12/2, 2015 at 16:10

5

Solved

You can do it sneakily† using the undocumented PHAsset.ALAssetURL property, but I'm looking for something documented. † In Objective-C, this will help @interface PHAsset (Sneaky) @property (no...
Spae asked 5/3, 2015 at 21:2

4

Solved

How to fetch all images from custom Photo Album? var fetchOptions = PHFetchOptions() fetchOptions.sortDescriptors = [NSSortDescriptor(key:"creationDate", ascending: false)] fetchOptions.predicate...
Variorum asked 23/8, 2015 at 17:4

2

A function in my app returns an image and I'm now trying to get the images creationDate and location. How is this possible with/without using PHAsset?
Peripteral asked 10/6, 2017 at 11:43

6

I have no idea why this is so difficult. I'm trying to determine the file type of a PHAsset, specifically, I want to know if a given asset represents a GIF image or not. Simply inspecting the asse...
Leonardoleoncavallo asked 12/2, 2016 at 1:2

3

Solved

I have an app that uses a UIImagePickerController to retrieve pictures both from camera and from the photos library. In the image picker delegate I only want to save the NSURL (UIImagePickerContro...
Oleoresin asked 19/2, 2016 at 18:8

© 2022 - 2025 — McMap. All rights reserved.