摘要:play video from URL retrieved from ALAsset in iOSyouDevise, Ltd. - Pragmatic Programmer London, EnglandOn-Line Strategies, Inc. - Java Software Engineer / Developer Dallas, TXMutual Mobile - Software Engineer - Android Austin, TXTabbedOut - Superhuman Mobile Developer Austin, TX up vote0down votefav
阅读全文
摘要:ALAssetsGroupEnumerationResultsBlock assetEnumerator = ^(ALAsset *asset, NSUInteger index, BOOL *stop) { if(asset != nil) { ALAssetRepresentation* representation = [asset defaultRepresentation]; NSLog(@"UTI = %@", [representation UTI]); NSLog(@"Metadata = %@", [representation met
阅读全文
摘要:ok 现在就简单一个方法就可以搞定 “获取所有图片从Photo Album”了。哈哈代码如下: 使用它“ALAssetsLibrary” 就ok了。+ (void) startGettingDataFromPhotoAlbum:(NSMutableArray *)arrayOfReceiveData ALAssetType:(NSString *)type{ // ALAssetsLibraryAccessFailureBlock failureblock = ^(NSError *myerror){ NSLog(@"cant get image -- %@",[myerr
阅读全文
摘要:1:- (NSData *)imageData { ALAssetRepresentation *assetRep = [self.asset defaultRepresentation]; NSUInteger size = [assetRep size]; uint8_t *buff = malloc(size); NSError *err = nil; NSUInteger gotByteCount = [assetRep getBytes:buff fromOffset:0 length:size error:&err]; if (gotByteCount) { if (err
阅读全文