2017-05-26 32 views
0

iOS上的工作當我使用未:user_good和PW:pass_good我得到的附加屏幕無法獲得格紋沙箱雨燕3

而且它不會返回的accessToken 我已經添加了我的公鑰我的AppDelegate

[![@IBAction fu][1]][1]nc plaidConnectButton(_ sender: Any) { 
    let plaidLink = PLDLinkNavigationViewController(environment: .tartan, product: .connect)! 

    plaidLink.linkDelegate = self 
    plaidLink.providesPresentationContextTransitionStyle = true 
    plaidLink.definesPresentationContext = true 
    plaidLink.modalPresentationStyle = .custom 

    self.present(plaidLink, animated: true, completion: nil) 
} 


func linkNavigationContoller(_ navigationController: PLDLinkNavigationViewController!, didFinishWithAccessToken accessToken: String!) { 
    print("success \(accessToken)") 
    myAPIClient.connectAddBank(bankToken: accessToken, completion:{ 
     (error) in 
     if(error != nil) { 
      print(error.debugDescription) 
     } else { 
      print("successfully added bank") 
      self.dismiss(animated: true, completion: nil) 
     } 
    }) 

} 

func linkNavigationControllerDidFinish(withBankNotListed navigationController: PLDLinkNavigationViewController!) { 
    print("Manually enter bank info?") 
    self.performSegue(withIdentifier: "unlistedBankSegue", sender: self) 
} 

func linkNavigationControllerDidCancel(_ navigationController: PLDLinkNavigationViewController!) { 
    self.dismiss(animated: true, completion: nil) 
} 

請幫

回答