使用您的代码无限加载屏幕发送短信帐户工具包IOS

时间:2018-05-01 07:26:11

标签: ios account-kit

我使用帐户套件登录使用电话号码。

let accountKit = AKFAccountKit(responseType: AKFResponseType.accessToken)
var pendingLoginViewController: UIViewController?

override func viewDidLoad() {
    super.viewDidLoad()
    pendingLoginViewController = accountKit.viewControllerForLoginResume()
}
@IBAction func loginWithEmail(sender: AnyObject) {
    let viewController = accountKit.viewControllerForPhoneLogin(with: nil, state: nil) as! AKFViewController
    viewController.enableSendToFacebook = true
    viewController.enableGetACall = true
    viewController.delegate = self
    present(viewController as! UIViewController, animated: true, completion: nil)
}
private func generateState() -> String {
    let uuid = NSUUID().uuidString.lowercased()
    return uuid
}

获得短信表单帐户工具包但app无限加载" Sending an SMS with your code"它应该进入下一个屏幕输入登录代码。

先谢谢。 enter image description here

0 个答案:

没有答案