0
我正在向Airdrop發送遠程文件(例如:圖像文件,pdf文件...)。 我只有這個文件的直接鏈接:http://example.com/xxx/png。 目前,我做這樣的事情下面的代碼使用AirDrop之前,我們必須下載遠程文件嗎?
NSString *filePath = self downloadFileFromServerWithURL
NSURL *urlFilePath = [NSURL fileURLWithPath:filePath];
NSArray *Items = [NSArray arrayWithObjects:
[NSNumber numberWithFloat:indexPath.row],
urlFilePath,nil];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:Items applicationActivities:[NSArray arrayWithObjects:xxx, yyy,nil];
[self presentViewController:activityViewController animated:YES completion:nil];
所以,我的問題是,我怎麼能分享空投的遠程文件沒有下載之前呢? 我展示了很多的iOS軟件可以做到這一點,像DropBox的
謝謝