ios - Downloading from iCloud -


i have icloud support in application. , save database in icloud successfully. when try download database file using bellow code

nsfilemanager *fm = [nsfilemanager defaultmanager];      nsurl *ubiq = [[nsfilemanager defaultmanager] urlforubiquitycontaineridentifier:nil];      if (ubiq == nil) {         return;     }      nserror *theerror = nil;      nsurl *url = [[ubiq urlbyappendingpathcomponent:@"documents" isdirectory:true] urlbyappendingpathcomponent:filename];      bool started = [fm startdownloadingubiquitousitematurl:url error:&theerror];      nslog(@"started download %@ %d", filename, started);      if (theerror != nil) {         nslog(@"icloud error: %@", [theerror localizeddescription]);     }     else     {      } 

downloading start don't know download or destination path. how can save file local directory of app. please help


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -