Sms sdk verification Development (SMSSDK) is quickly integrated in IOS, how to set the mobile phone verification code in IOS development, iossmssdk

Source: Internet
Author: User

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 ----------------

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.