【文件属性】:
文件名称:ios-利用sharesdk获取短信验证码.zip
文件大小:4.79MB
文件格式:ZIP
更新时间:2022-07-31 13:20:54
其他
func getSMSCode() {
/**
* @from v1.1.1
* @brief 获取验证码(Get verification code)
*
* @param method 获取验证码的方法(The method of getting verificationCode)
* @param phoneNumber 电话号码(The phone number)
* @param zone 区域号,不要加" "号(Area code)
* @param customIdentifier 自定义短信模板标识 该标识需从官网http://www.mob.com上申请,审核通过后获得。(Custom model of SMS. The identifier can get it from http://www.mob.com when the application had approved)
* @param result 请求结果回调(Results of the request)
*/
SMSSDK.getVerificationCodeByMethod(SMSGetCodeMethodSMS,
phoneNumber: "我的手机号",
zone: "86",
customIdentifier: nil) {
(error) in
if (error == nil) {
print("获取验证码")
} else {
print("错误信息:(error)")
}
}
【文件预览】:
SMS_Swift
----SMS_SwiftUITests()
--------Info.plist(733B)
--------SMS_SwiftUITests.swift(1KB)
----.DS_Store(6KB)
----SMS_Swift()
--------ViewController.swift(2KB)
--------Info.plist(1KB)
--------AppDelegate.swift(2KB)
--------SMS_SDK()
--------SMS_Swift-Bridging-Header.h(130B)
--------Base.lproj()
--------Assets.xcassets()
----SMS_SwiftTests()
--------Info.plist(733B)
--------SMS_SwiftTests.swift(972B)
----SMS_Swift.xcodeproj()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(24KB)