alassetslibrary

Photo taken with camera does not contain any ALAsset metadata

☆樱花仙子☆ 提交于 2019-12-18 12:30:49
问题 The weirdest thing is happening. I have an action sheet which gives the user the choice to either take a photo with the camera or choose one from the camera roll. Upon the UIImagePicker returning from selection I use the ALAssetsLibrary to determine the GPS information embedded in the photo. Choosing a photo from the camera roll works perfectly and I am able to retrieve the GPS information. However, taking a photo with the camera provides absolutely no GPS information, in fact I have no

Photo taken with camera does not contain any ALAsset metadata

守給你的承諾、 提交于 2019-12-18 12:30:15
问题 The weirdest thing is happening. I have an action sheet which gives the user the choice to either take a photo with the camera or choose one from the camera roll. Upon the UIImagePicker returning from selection I use the ALAssetsLibrary to determine the GPS information embedded in the photo. Choosing a photo from the camera roll works perfectly and I am able to retrieve the GPS information. However, taking a photo with the camera provides absolutely no GPS information, in fact I have no

AssetsLibrary framework broken on iOS 8

删除回忆录丶 提交于 2019-12-18 11:31:32
问题 I have run into an issue on iOS 8 with the Assets Library framework that appears to be a bug in iOS 8. If I create an album called 'MyMedia' and then delete it, then when I try to create the album again, this chunk of code below returns 'nil' indicating that the album 'MyMedia' exists even though it does not because I deleted it using the 'Photos' app. __block ALAssetsGroup *myGroup = nil; __block BOOL addAssetDone = false; NSString *albumName = @"MyMedia"; [assetsLib

Interpret XMP-Metadata in ALAssetRepresentation

六眼飞鱼酱① 提交于 2019-12-18 10:13:33
问题 When a user makes some changes (cropping, red-eye removal, ...) to photos in the built-in Photos.app on iOS, the changes are not applied to the fullResolutionImage returned by the corresponding ALAssetRepresentation . However, the changes are applied to the thumbnail and the fullScreenImage returned by the ALAssetRepresentation . Furthermore, information about the applied changes can be found in the ALAssetRepresentation 's metadata dictionary via the key @"AdjustmentXMP" . I would like to

ALAssetsLibrary seems to return wrong number of my photos

社会主义新天地 提交于 2019-12-18 06:35:41
问题 When I use ALAssetsLibrary to get local photos it works fine. But after I delete some photos with the 'Photos' application my app crashes. Crash info is: "Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSOrderedSet enumerateObjectsAtIndexes:options:usingBlock:]: index 14 beyond bounds [0 .. 9]'".'14' It looks like the number of local photos still remains the same as befoore. And even after I quit my app and restart it again, it still crashes. Local photo access

How to fetch images from photo library within range of two dates in iOS?

痞子三分冷 提交于 2019-12-17 20:29:44
问题 Context I am try to fetch images within range of two dates from the photo library. Firstly, I am getting info of the photo library images one by one in the dictionary form and picking every image date by using key and comparing that date with two dates by using if condition. If that image's date lies between the two dates, I insert that image into array. I am Saving images in array because I would like to show them in a collection view. Problem While it is working on simulator, it is not

ALAssetsLibrary delete ALAssetsGroup / ALAsset

安稳与你 提交于 2019-12-17 19:48:14
问题 I have created "photos album" from my App, using IOS AssetsLibrary. Reading ALAssetsLibrary,ALAssetsGroup and ALAsset documentations, i have seen methods to "addAsset","addAssetsGroupAlbumWithName". Is there a way to delete PROGRAMMATICALLY my ALAssetsGroup and ALAsset. (the property 'editable' suppose to be TRUE because i create this data). 回答1: This is not possible using any documented API. Only the photos app can delete Albums. If you want this feature to be added to iOS, I would fill a

How to check if an ALAsset still exists using a URL

眉间皱痕 提交于 2019-12-17 15:51:46
问题 I've got an array containing ALAsset urls (not full ALAsset objects) So each time I start my application I want to check my array to see if it's still up to date... So I tried NSData *assetData = [[NSData alloc] initWithContentsOfFile:@"assets-library://asset/asset.PNG?id=1000000001&ext=PNG"]; but assetData is allways nil thx for the help 回答1: Use assetForURL:resultBlock:failureBlock: method of ALAssetsLibrary instead to get the asset from its URL. // Create assets library ALAssetsLibrary

iOS save photo in an app specific album

為{幸葍}努か 提交于 2019-12-17 07:15:22
问题 I'm creating an iOS 5 app. I want to save a photo to the device. I want to save the photo to an album specific to my app, so I need to create the album, and then save photos to the album. I know how to create the album: ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; [library addAssetsGroupAlbumWithName:@"MY APP NAME" resultBlock:^(ALAssetsGroup *group) { //How to get the album URL? } failureBlock:^(NSError *error) { //Handle the error }]; I want add photos to the new album now,

iOS save photo in an app specific album

有些话、适合烂在心里 提交于 2019-12-17 07:15:08
问题 I'm creating an iOS 5 app. I want to save a photo to the device. I want to save the photo to an album specific to my app, so I need to create the album, and then save photos to the album. I know how to create the album: ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; [library addAssetsGroupAlbumWithName:@"MY APP NAME" resultBlock:^(ALAssetsGroup *group) { //How to get the album URL? } failureBlock:^(NSError *error) { //Handle the error }]; I want add photos to the new album now,