2
スウィフト3.0とxcode 8.0のポッドによるシンチ検証を使用しています。私はinitiate()
とverifyCode()
方法が、コンパイラのショーを呼び出したいvalue of type SINVerification? has no member
私が持っている輸入import SinchVerification
とコードの下に書かれた: -スウィフト3.0とxcode 8.0でシンチ検証メソッドが表示されない
let region:String = SINDeviceRegion.currentCountryCode()
let phoneNumber:SINPhoneNumber?
do {
try phoneNumber = SINPhoneNumberUtil().parse("xxxxxxxxxx", defaultRegion: region)
let phoneNumberInE164:String = SINPhoneNumberUtil().formatNumber(phoneNumber!, format: SINPhoneNumberFormat.E164)
let verification = SINVerification.smsVerification(withApplicationKey: "965010f3-bb37-4356-82ba-fea0452377d9", phoneNumber: phoneNumberInE164) as? SINVerification
verification.initiate { (success:Bool, error:Error?) -> Void in
//handle outcome
if (success){
print("successfully requested phone verification")
} else {
print(error?.localizedDescription)
}
}
SMSVerification()メソッドが表示されない –
どういう意味ですか? – cjensen
あなたはシンチ・フレームワークのどのバージョンを使用していますか? – cjensen