After authorizing DropBox from iOS code in Swift I get this error :
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<SwiftyDropbox.LoadingViewController 0x10a91c250> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key cancelButton.'
AppDelegate
let oauthCompletion: DropboxOAuthCompletion = {
if let authResult = $0 {
switch authResult {
case .success:
print("Success! User is logged into DropboxClientsManager.")
case .cancel:
print("Authorization flow was manually canceled by user!")
case .error(_, let description):
print("Error: \(String(describing: description))")
}
}
}
canHandleUrl = DropboxClientsManager.handleRedirectURL(url, completion: oauthCompletion)
return canHandleUrl
DropBox auth button:
DropboxClientsManager.authorizeFromControllerV2(UIApplication.shared,
controller: self,
loadingStatusDelegate: nil,
openURL: { (url: URL) -> Void in UIApplication.shared.open( url, options: [:], completionHandler: nil)},
scopeRequest: nil)