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.
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.