简体   繁体   中英

Dropbox iOS SDK in-app drop-in?

I'm building an iOS app where users can select files from Dropbox. I successfully made it possible to select a file from Dropbox using the Chooser but I have 2 additional wishes / questions:

  • Is it possible to show the chooser inside the app sa modal viewcontroller? And not redirect you to the Dropbox app? The authentication box does this in the iOS simulator, but on a device it also rips you out of the app.

  • Is it possible to select multiple files?

 - (void)addFilesFromDropbox { [[DBChooser defaultChooser] openChooserForLinkType:DBChooserLinkTypeDirect >fromViewController:self completion:^(NSArray *results){ if([results count]){ NSLog(@"got results %@", results); NSLog(@"link 0 = %@", [[results[0] link] absoluteString]); } else { NSLog(@"no results"); } }]; 

}

PS: It needs to be iOS7 compatible.

  • No, it's not currently possible to show the Chooser in the calling app, as the Chooser itself is actually only built into the official Dropbox app.
  • No, the Dropbox for iOS Chooser doesn't currently support multi-select.

We're tracking both of these as feature requests though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM