[reprint please specify source]
The SDK is someone else's, I just download to integrate.
SMSSDK Download Website: http://www.mob.com/(there are many other sites have similar SDK, such as https://www.juhe.cn/and so on, you can Baidu, I am here to demonstrate the Mob official website)
This website is called SMSSDK free, but in a look ...
Free 20 per day, the maximum registration is only permanent free. Don't say more, start ...
Official website Integrated Document http://wiki.mob.com/
[Step up] I'm on the official document, fool-like operation
[4.1]: First crossing network Description:
[4.2] Look at my project again, in the AppDelegate.h file
[5] Look at the official SDK, notice the property introduction
Look at me and write it.
This verification success, just a small demo, very simple, no official demo so rigorous, the official support voice verification instructions, phone number input is not correct, the verification code two times sent .... Many, interested friends can download their own to see, and also feel that there is no place to welcome the discussion, I also study it ....
--------------------------
I can't seem to see clearly, I make up some source:
-------Wolfhous--------------
Submit Mobile phone number //wolfhous cnblogs Blog , reproduced please indicate the source !!!!
-(ibaction) Clickphone: (ID) Sender {
[smssdk getverificationcodebymethod:smsgetcodemethodsms phonenumber: self. Phone. Text Zone:@ "Customidentifier": nil result: ^ (nserror *error) {< /c6>
if (Error) {
NSLog (@ "Wolfhous submitted mobile phone success %@", error);
}else{
NSLog (@ "Wolfhous submitted mobile phone number success ");
}
}];
}
// Submit Verification Code // personal website www.houshuai.com
-(ibaction) Clickcode: (ID) Sender {
[smssdk commitverificationcode:self. Code. Text phonenumber:self. Phone. Text Zone:@ "" " result: ^ (nserror *error) {
if (Error) {
NSLog (@ "wolfhous verification code failed %@", error);
}else{
NSLog (@ "Wolfhosu verification Code Success ");
}
}];
}
------------------wolfhous----------------
Quick Integration SMS SDK Validation development in iOS (SMSSDK), how to set up your phone verification code in iOS development