Questions tagged [photokit]

PhotoKit (also known as Photos Framework) is a framework that allows you to retrieve assets for display and playback, edit their image or video content, or work with collections of assets such as albums, moments, and iCloud Shared Albums. This framework is available in iOS 8.0 and later.

PhotoKit (also known as Photos Framework) is a framework that allows you to retrieve assets for display and playback, edit their image or video content, or work with collections of assets such as user albums, smart albums and iCloud Shared Albums. This framework is available in iOS 8.0 and later.

256 questions
1
vote
0 answers

iOS 9.0 assetContentChanged sometimes returns false

When listening on changes from the Photo Library in photoLibraryDidChange(), PHObjectChangeDetails.assetContentChanged sometimes returns false for assets whose contents definitely have changed (it has been cropped). But somehow assetContentChanged…
WindowsMaker
  • 3,132
  • 7
  • 29
  • 46
1
vote
0 answers

How to handle PhotoKit "mstreamd: not allowed to download assets at this time"?

Our iOS 9 app uses PhotoKit to display photos from the user's Photo Library, including iCloud Shared Albums. Unfortunately, PHImageManager.defaultImageManager().requestImageForAsset is regularly failing to load full-size images for some of our…
LenK
  • 2,944
  • 2
  • 20
  • 26
1
vote
1 answer

How to get the asset URL of a picture taken from UIImagePicker

I'm trying to find out how to get the asset URL of an image saved to the camera roll, but I can't find much that can help me out. I've seen Objective-C examples, but I'm not experienced with it and a lot of the times they use ALAssetLibrary, which…
Carl Litchman
  • 129
  • 2
  • 10
1
vote
0 answers

Full-sized PNG data from iCloud

I'm trying to get the full-sized image data for an asset, especially when the photo is in iCloud. I want the most recent version of the image. If the image is a JPG it's all ok, but if it's a PNG (for example a screenshot) and it is on iCloud, I…
asclepix
  • 7,971
  • 3
  • 31
  • 41
1
vote
1 answer

how can I upload video use photokit?

before iOS8, I use ALAsset and use buffer to get NSData then upload video like below; Byte * buffer = (Byte *)malloc(lenght); NSError * error = nil; NSUInteger readLength = [self.asset.defaultRepresentation getBytes:buffer…
彭显鹤
  • 13
  • 3
1
vote
1 answer

Writing a Photo with Metadata using Photokit

I am currently using ALAsset framework for saving an image from Photo library to documents directory with metadata. The code I use is ALAssetsLibrary *library = [[[ALAssetsLibrary alloc] init] autorelease]; [library assetForURL:[NSURL…
user1191140
  • 1,559
  • 3
  • 18
  • 37
1
vote
1 answer

Cannot get a clear image requested from Photo Album using PhotoKit

I am using PhotoKit to fetch the photos in one of the system albums like this: PHFetchOptions *fetchOptions = [[PHFetchOptions alloc] init]; fetchOptions.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"creationDate"…
bolizhou
  • 1,208
  • 1
  • 13
  • 31
1
vote
1 answer

How to add image in PHAsset and delete it from photo library?

I am working on an app like hiding photos and I want to move the images to my app so for that I have to import images from photo library and delete that image from library but I cant understand how to work with PHAssets and where to implement. I…
vp2698
  • 1,783
  • 26
  • 28
1
vote
1 answer

Limit PHAsset fetch result to only 3 assets

I need to fetch three photos sorted by the date taken - latest being the most recently taken. The way I am currently doing this is by fetching all photo assets then fetching the asset at the appropriate indexes (0, 1, 2). While this works, I am…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
1
vote
0 answers

ios: share video to instagram using photokit framework

This is the method where we can share video to Instagram by saving the video to Camera Roll and using asset library url we can share it to Instagram app, provided Instagram is installed in the device. ALAssetsLibrary *library = [[ALAssetsLibrary…
rishu1992
  • 1,414
  • 3
  • 14
  • 33
1
vote
0 answers

IOS Photos - Requesting Image for Asset with Swift

I have updated this post on 10 April 2015 with new info ... I have an App where I am copying the contents of a Cloud Photo album to a local Album on an IOS device. I am using the following code : func fetchFullSizeImageForAsset(asset:PHAsset) ->…
Ross
  • 51
  • 3
1
vote
1 answer

PhotoKit: Crash [assetsd was interrupted or died] when using requestImageForAsset to fetch asset with PHImageManagerMaximumSize

I am trying to display Image using UIPageViewController, using the sample code from apple and replacing it with the new photo Kit: PHAsset…
helloJosh
  • 11
  • 2
1
vote
2 answers

iOS Images, photokit, image orientation

I am working on an iOS app using iOS 8 and the new PhotoKit, I iterate over user images and I am trying to find out via code whether an image is vertical or horizontal? is there a flag I can inspect on the asset?
Huang
  • 1,355
  • 2
  • 11
  • 28
1
vote
1 answer

Problems Using PhotoKit from Utility Dispatch Queue

I am trying to do background processing of assets while my app runs in the forground but I keep having problems with poor performace on the main thread and priority inversion issues. I am using a background QOS_UTILITY dispatch_async call. It seems…
possen
  • 8,596
  • 2
  • 39
  • 48
1
vote
1 answer

Blurry images in UICollectionViewCell using Photo Kit and Swift

I am working on an app with a photo section and a Collection View. The images in the cells are blurry. They are sharp when viewed full screen and on a different screen as thumbnails in a table view. I have an NSManagedObject subclass called Photo…
Steve Schwedt
  • 380
  • 2
  • 11