cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

UIApplication sharedApplication methods for iOS 10

Helpful | Level 6

Hello,

 

The Documentation is Out for date for iOS 10 APIv2. It requires a completion handler.

 

Does anyone have this method in Objective-C?

 

 

#import <ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.h>

- (void)myButtonInControllerPressed {
  [DBClientsManager authorizeFromController:[UIApplication sharedApplication]
                                 controller:self
                                    openURL:^(NSURL *url) {
                                      [[UIApplication sharedApplication] openURL:url];
                                    }
                                browserAuth:YES];
}

 

Thanks,

 

 

 

 

1 Accepted Solution

Accepted Solutions

Re: UIApplication sharedApplication methods for iOS 10

Helpful | Level 6

Self Answered:

 

[DBClientsManager authorizeFromController:[UIApplication sharedApplication] controller:self openURL:^(NSURL *url) { [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {

        if (success) {

            NSLog(@"Opened url");

        }}

]; } browserAuth:YES];

 

 

View solution in original post

1 Reply 1

Re: UIApplication sharedApplication methods for iOS 10

Helpful | Level 6

Self Answered:

 

[DBClientsManager authorizeFromController:[UIApplication sharedApplication] controller:self openURL:^(NSURL *url) { [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {

        if (success) {

            NSLog(@"Opened url");

        }}

]; } browserAuth:YES];

 

 

View solution in original post

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Need more support?