photokit Questions
1
Is there a way to show the user's current photo selections when presenting a PHPickerViewController manually? For example, when using the following code the picker doesn't show any of the user's cu...
Applejack asked 28/9, 2020 at 20:45
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.
...
5
Solved
I'm trying to play an slow motion video (filmed by the user's iPhone) in an AVPlayer.
I am retrieving the AVAsset with a request on a PHAsset from a picker:
[manager requestAVAssetForVideo:PHAss...
Bespoke asked 1/5, 2016 at 0:58
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...
3
Solved
When I try to get an image with specific size, PHImageManager.default().requestImage is called twice with images of different sizes.
Here is the code:
static func load(from asset: PHAsset, target...
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...
4
`PHAssetChangeRequest.creationRequestForAssetFromVideo(url:)` fails for high FPS videos on iPhone SE
We have gotten reports of issues with recording slow motion videos in our application. We have tested the issue on iPhone X, iPhone 6, and iPhone SE. The 6 and the X both work fine, but the SE fail...
Payee asked 13/1, 2018 at 20:33
1
Apple's Photos app allows users to query photos with search keywords like "surfing", "food", "sky".
How could a third-party iOS app with Camera and Photos permissions search the phone's camera rol...
Morula asked 9/10, 2019 at 18:57
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...
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
4
Solved
I'm using the new PHFetchOptions' sortDescriptors for getting PHAssets from the camera roll. There seem to only be two keys to sort on: creationDate and modificationDate, neither of which are the s...
Mulvey asked 13/3, 2015 at 0:9
6
Solved
CollectionViewController.m line 439
__50-[CollectionViewController photoLibraryDidChange:]_block_invoke
Fatal Exception: NSInternalInconsistencyException
attempt to delete and reload the same ...
Ollieollis asked 30/3, 2015 at 3:4
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
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...
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
2
Are there ever circumstances where the localIdentifier could change or not be accurate? I'm working on an application that backs up photos and have been told by my colleagues that the localIdentifi...
Lighthouse asked 17/10, 2016 at 20:3
0
Exception/crash upon calling PHImageManager requestImageForAsset:targetSize:contentMode:options:resultHandler:
"uncaught exception 'NSInvalidArgumentException', reason: 'executeFetchRequest:e...
Asseveration asked 10/10, 2019 at 22:16
3
Solved
I need to display the camera roll album with the count of images in it. I'm using the below code to get the camera roll album.
let smartCollections = PHAssetCollection.fetchAssetCollectionsWithTyp...
Pucida asked 20/2, 2016 at 9:28
6
Solved
I want to save a video chosen from UIImagePickerController to the Photos album.
After that i need to fetch the URL to the saved path. I saw some pre-existing questions which answer with use of ALAs...
Hardworking asked 25/4, 2017 at 10:40
0
Currently does the PhotoKit API allow access to the People album & the face information or is all that private?
For example is it possible to fetch all of the photos of "John Smith" if I have...
3
In Objective-C, there's a Photos Framework a.k.a. PhotoKit which enables iOS developers to access the photos library on iPhone and iPad and to retrieve the pictures/videos along with their metadata...
Laconic asked 9/5, 2015 at 20:14
2
Solved
I'm working with PhotoKit and have implemented filters users can apply to photos in their Photo Library. I am currently obtaining the image, applying a filter, returning the edited version as a CII...
Syncopated asked 12/1, 2015 at 6:23
2
Solved
I create an image at url provided by PHContentEditingOutput. When I load data to UIImage and save it like this - it works.
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
NSData *data = [N...
6
Solved
Apple will introduce Live Photo in iOS 9/iPhone 6s. Where is the file format documented?
Clergy asked 10/9, 2015 at 17:38
3
Solved
When using Assets Library you could fetch the album's poster image from ALAssetsGroup. How do you achieve the same when using Photos Framework (Photo kit)?
1 Next >
© 2022 - 2025 — McMap. All rights reserved.