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

UIApplication sharedApplication methods for iOS 10

mrobinson
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

mrobinson
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

mrobinson
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.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?