Sms sdk verification Development (SMSSDK) is quickly integrated in IOS, how to set the mobile phone verification code in IOS development, iossmssdk
[Reprinted, please specify the source]
The sdk is from someone else. I just downloaded it to integrate it.
Smssdk download site: http://www.mob.com/(there are many other websites with similar sdks, such as https://www.juhe.cn/, etc., you can ride a hundred degrees, I will demonstrate here refer to the mobguan Network)
This website claims that smssdk is free of charge, but you can check it out ........
20 free items per day, and the maximum number of registered items is permanently free. Don't talk about it, start ......
Official website integration documentation http://wiki.mob.com/
[1 ~ Step 3] I will go to the official documentation and perform the silly operations.
[4.1]: First read the official website description:
[4.2] view my project again, in the AppDelegate. h file
[5] Check the official SDK and pay attention to the attribute introduction.
Look at what I wrote.
Now the verification is successful. It's just a small Demo. It's very simple. It's not as rigorous as the official Demo. The official team also supports voice verification instructions. The mobile phone number is incorrect and the verification code is sent twice .... A lot of interested friends can download and check it by themselves. In addition, if you think there is something wrong, you are welcome to discuss it. I also want to learn ....
--------------------------
I can't see it clearly. I need to fill in the source code:
------- Wolfhous --------------
// Submit the cnblogs blog of the mobile phone number wolfhous. For more information, see the source !!!!
-(IBAction) clickPhone :( id) sender {
[SMSSDK getVerificationCodeByMethod: SMSGetCodeMethodSMS phoneNumber: self. phone. text zone: @ "86" customIdentifier: nil result: ^ (NSError * error ){
If (error ){
NSLog (@ "wolfhous submitted mobile phone success % @", error );
} Else {
NSLog (@ "wolfhous: Mobile Phone Number submitted successfully ");
}
}];
}
// Submit the verification code // personal website www.houshuai.com
-(IBAction) clickCode :( id) sender {
[SMSSDK commitVerificationCode: self. code. text phoneNumber: self. phone. text zone: @ "86" result: ^ (NSError * error ){
If (error ){
NSLog (@ "wolfhous Verification Code failed % @", error );
} Else {
NSLog (@ "wolfhosu Verification Code succeeded ");
}
}];
}
------------------ Wolfhous ----------------