DropBox APIの変更(^^;またかよ
handleRedirectURLが *void になったぞ、
そして、completion:ハンドラになったぞ、ということで書きえた
コメントアウトしているのが旧コード
[DBClientsManager handleRedirectURL:url completion:^(DBOAuthResult * _Nullable authResult) {
if (authResult != nil) {
if ([authResult isSuccess]) {
NSLog(@”Success! User is logged into Dropbox.”);
masterViewController.AuthSuccessful = YES;
[detailViewController DropboxStart2];
return;
} else if ([authResult isCancel]) {
NSLog(@”Authorization flow was manually canceled by user!”);
} else if ([authResult isError]) {
NSLog(@”Error: %@”, authResult);
}
}
}]
/*
DBOAuthResult *authResult = [DBClientsManager handleRedirectURL:url];
if (authResult != nil) {
if ([authResult isSuccess]) {
NSLog(@”Success! User is logged into Dropbox.”);
masterViewController.AuthSuccessful = YES;
[detailViewController DropboxStart2];
return YES;
} else if ([authResult isCancel]) {
NSLog(@”Authorization flow was manually canceled by user!”);
} else if ([authResult isError]) {
NSLog(@”Error: %@”, authResult);
}
}
*/