1. Here is the SHARESDK network SMS Verification Code SDK official website http://www.mob.com
First go to Http://www.mob.com/#/reg to register as a developer
Fill in the appropriate information, email account, and then activate the completed
After creating a good account activation
2. Log in, click the Avatar button in the top right corner of the page to enter the background,
Figure 1
3. Click into the background and then the interface appears.
Figure 2
I click here has already created a show is Figure 2, if you have not created an application, we show here is
Figure 3 of the style,
Then fill in the corresponding content according to figure IV, we are here is the SMS verification code to select a second
SECURITYCODESDK, click to enter
We only need to Figure 5, then click on the right side of the display to the app key and app Secret value to remove the
Write down appkey=c4cf35e7f978 appsecret=33d272100b0805e826969d7ada9be1ea.
After these two contents are obtained, download the SMS Verification Code SDK below
1. Download SMS Verification Code SDK URL Http://www.mob.com/#/downloadDetail/SMS/ios
After downloading, open all we need is a file named Sms_sdk, and drag this file to the project
When importing, don't forget to tick the first copy items if needed
2. Then add the dependent library file
Dependent Kuto
(Address Book function required)
(Address Book function required)
3. Add initialization code
Import header files in the APPDELEGATE.M file
#import <SMS_SDK/SMSSDK.h>
Add the following lines of code to this method
-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) launchOptions {
The value of the appkey we just acquired
NSString *[email protected] "c4cf35e7f978";
The value of the appsecret we just acquired
NSString *[email protected] "33d272100b0805e826969d7ada9be1ea";
Such a fill, it integrates the
[Smssdk Registerapp:appkey Withsecret:appsecret];
return YES;
}
The Sms_sdk.h file is the core class of SMSSDK. All methods of this class are provided as a class method, and the corresponding methods are used directly as needed.
Uidemodemodemoui
More reference official documents Http://wiki.mob.com/iOS SMS SDK Integration documentation/
SHARESDK SMS Verification Code Integration detailed steps