alassetlibrary

Get All Images from cameraroll asynchrously

做~自己de王妃 提交于 2020-01-17 05:49:32
问题 I want to get all images from cameraroll asynchrously Now I am using that code but my application got hanged untill all the images retrieved , I noticed in instigram or other application it doen't take time to load picture from camerroll. -(void)getAllPictures { NSLog(@"i m in "); imageArray=[[NSArray alloc] init]; mutableArray =[[NSMutableArray alloc]init]; NSMutableArray* assetURLDictionaries = [[NSMutableArray alloc] init]; library = [[ALAssetsLibrary alloc] init]; void (^assetEnumerator)(

Delete images in camera roll from code iOS

ぃ、小莉子 提交于 2019-12-18 17:48:30
问题 Is there a way to delete images (and videos) in camera roll in the photos app that my app didn't create. I know you can't delete things from Asset Library that your app didn't create. But this app isn't on app store. It's on a kiosk type environment. So I can use private APIs. So is there a way to do this using private APIs that apple would not approve for the app store, but would work for my situation. Thanks. 回答1: Yep, you can do this in iOS 8 using Photos framework. For example if you have

Convert Ios Photo Album path url same like as Document directory File-path

不羁的心 提交于 2019-12-12 03:24:28
问题 As per my requirement, want to access iOS device photos app file url (not file as data) for my GCDWebUploader. I want assets library url for my web server. NSString* documentsPath =[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]; _webServer = [[GCDWebUploader alloc] initWithUploadDirectory: documentsPath]; // this is working and document directory files shown on browser. _webServer = [[GCDWebUploader alloc] initWithUploadDirectory:assetsUrl]; //

Getting Slow Motion meta data from captured video in iOS

血红的双手。 提交于 2019-12-07 00:10:37
问题 We have a video app that is importing video from the user's camera roll. Our problem is importing slo-mo video taken with the native Camera app. We can recognise that there is a higher than normal frame rate (e.g. 120 or 240 fps). What we can't find is the meta information that specifies when the video drops into slow motion and when it speeds up again. Does anyone know where this information is kept, and/or how to get at it? Is it in the file itself, or stored in a separate meta file

Getting Slow Motion meta data from captured video in iOS

。_饼干妹妹 提交于 2019-12-05 07:09:10
We have a video app that is importing video from the user's camera roll. Our problem is importing slo-mo video taken with the native Camera app. We can recognise that there is a higher than normal frame rate (e.g. 120 or 240 fps). What we can't find is the meta information that specifies when the video drops into slow motion and when it speeds up again. Does anyone know where this information is kept, and/or how to get at it? Is it in the file itself, or stored in a separate meta file somewhere? Any help would be hugely appreciated, thanks! The slow motion segments are technically not metadata

ios 8, how to get all photos using ALAssetLibrary to replace the missing camera roll album

邮差的信 提交于 2019-12-04 10:21:13
问题 I have an app that has a custom Image Picker that uses the ALAssetLibrary to create an Album picker and image picker. We've implemented a custom picker in order for our customers to select multiple images. This image picker works great under iOS 7 and shows the "Camera Roll" album with ALL the user's photos. However, when running the same app under iOS 8, it seems that Apple has removed the "Camera Roll" album from the Albums view and only shows "Recent Photos". From what I can see, the only

ios 8, how to get all photos using ALAssetLibrary to replace the missing camera roll album

倾然丶 夕夏残阳落幕 提交于 2019-12-03 05:42:49
I have an app that has a custom Image Picker that uses the ALAssetLibrary to create an Album picker and image picker. We've implemented a custom picker in order for our customers to select multiple images. This image picker works great under iOS 7 and shows the "Camera Roll" album with ALL the user's photos. However, when running the same app under iOS 8, it seems that Apple has removed the "Camera Roll" album from the Albums view and only shows "Recent Photos". From what I can see, the only way to access all photos in iOS 8 is through the Collection view (in the Photos app or the new built-in

Get the Image (UIImage) using asset URL in iOS 7

点点圈 提交于 2019-12-01 08:52:32
I have some images in my Photo Album. I have already retrieved the asset urls of all of them.. I want to get a particular image using the asset url... below code gave me asset url.. ALAssetRepresentation *defaultRepresentation = [asset defaultRepresentation]; NSString *uti = [defaultRepresentation UTI]; NSURL *URL = [[asset valueForProperty:ALAssetPropertyURLs] valueForKey:uti]; Now using this url, how can I get the image(UIImage)? Get Url by this, NSURL *url= (NSURL*) [[asset valueForProperty:ALAssetPropertyURLs] valueForKey:[[[asset valueForProperty:ALAssetPropertyURLs] allKeys]

Get the Image (UIImage) using asset URL in iOS 7

假装没事ソ 提交于 2019-12-01 05:51:58
问题 I have some images in my Photo Album. I have already retrieved the asset urls of all of them.. I want to get a particular image using the asset url... below code gave me asset url.. ALAssetRepresentation *defaultRepresentation = [asset defaultRepresentation]; NSString *uti = [defaultRepresentation UTI]; NSURL *URL = [[asset valueForProperty:ALAssetPropertyURLs] valueForKey:uti]; Now using this url, how can I get the image(UIImage)? 回答1: Get Url by this, NSURL *url= (NSURL*) [[asset