ios - Downloading from dropbox on Login click -


i using core api dropbox download files dropbox.

when clicked import button login window popup, after successful login goes appdelegate's handleopenurl method.
want download on click have written following methods in viewcontroller want download

-(void)importfromdropbox{  [[self restclient] loadmetadata:@"/"];  } - (void)restclient:(dbrestclient *)client loadedmetadata:(dbmetadata *)metadata {     if (metadata.isdirectory) {         nslog(@"folder '%@' contains:", metadata.path);         (dbmetadata *file in metadata.contents) {             nslog(@"    %@", file.filename);         }     } } - (void)restclient:(dbrestclient *)client loadmetadatafailedwitherror:(nserror *)error {      nslog(@"error loading metadata: %@", error); } 

and called importfromdropbox appdelegate.

my problem appdelegate importfromdropbox gets called loadedmetadata or loadmetadatafailedwitherror not called.

what should download login click?

please me. thank you.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -