2017-01-17 7 views

답변

-1

에 추가 코드 1을 시도하십시오 3

PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc] init]; 
options.networkAccessAllowed = YES; 

//Additional code 1 
dispatch_semaphore_t semaphore = dispatch_semaphore_create(1); 

[[PHImageManager defaultManager] requestAVAssetForVideo:[videos objectAtIndex:index] options:options resultHandler:^(AVAsset *asset, AVAudioMix *audioMix, NSDictionary *info) { 
    selectedAsset = asset; 

//Additional code 2 
dispatch_semaphore_signal(semaphore); 

}]; 

//Additional code 3 
dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);