2017-01-17 6 views
0

swift3의 xcode 8.2.1에서 패브릭 디지트를 사용하여 sms 확인을 위해이 코드를 사용했습니다.네트워크 문제가 발생했습니다. 다시 해보 죠? [99]

let authButton = DGTAuthenticateButton(authenticationCompletion: { (session, error) in 
      if (session != nil) { 
       let message = "Phone number: \(session!.phoneNumber)" 
       let alertController = UIAlertController(title: "You are logged in!", message: message, preferredStyle: .alert) 
       alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: .none)) 
       self.present(alertController, animated: true, completion: .none) 
      } else { 
       NSLog("Authentication error: %@", error!.localizedDescription) 
      } 
     }) 
     authButton?.center = self.view.center 
     self.view.addSubview(authButton!) 

전화 번호를 입력 한 후 "확인 코드 전송"을 클릭하면 오류 메시지가 나타납니다. 이 문제를 어떻게 해결할 수 있습니까? Error message

+0

'Twitter'앞에 'Digits'를 설정하려고 했습니까? –

답변