smssdk更新
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
#import "IfishNewsModel.h"
|
||||
#import <SMS_SDK/SMSSDK.h>
|
||||
#import <SMS_SDK/Extend/SMSSDK+ExtexdMethods.h>
|
||||
#import <MOBFoundation/MobSDK+Privacy.h>
|
||||
#import "XWCountryCodeController.h"
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
@interface RegistViewController ()<UITextFieldDelegate,UIAlertViewDelegate,MBProgressHUDDelegate,CLLocationManagerDelegate,WXApiManagerDelegate>
|
||||
@@ -85,6 +85,9 @@ extern BOOL formLogIn;
|
||||
}
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
|
||||
[MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL success) {
|
||||
}];
|
||||
_deviceArry=[[NSMutableArray alloc]init];
|
||||
//默认中国大陆
|
||||
self.areaCode = @"86";
|
||||
@@ -444,7 +447,7 @@ extern BOOL formLogIn;
|
||||
btn.userInteractionEnabled=NO;
|
||||
btn.backgroundColor=[UIColor lightGrayColor];
|
||||
|
||||
[SMSSDK commitVerificationCode:self.verifyTextField.text phoneNumber:self.phoneNumberTextField.text zone:self.areaCode result:^(SMSSDKUserInfo *userInfo, NSError *error) {
|
||||
[SMSSDK commitVerificationCode:self.verifyTextField.text phoneNumber:self.phoneNumberTextField.text zone:self.areaCode result:^(NSError *error) {
|
||||
|
||||
{
|
||||
if (!error)
|
||||
@@ -625,11 +628,15 @@ extern BOOL formLogIn;
|
||||
_registBtn.userInteractionEnabled=YES;
|
||||
_registBtn.backgroundColor=COLOR_LABEL_TITLE;
|
||||
gouxuan=NO;
|
||||
[MobSDK uploadPrivacyPermissionStatus:NO onResult:^(BOOL success) {
|
||||
}];
|
||||
}else{
|
||||
[xuanBtn setBackgroundImage:[UIImage imageNamed:@"registered_icon_tick_selected"] forState:UIControlStateNormal];
|
||||
_registBtn.userInteractionEnabled=NO;
|
||||
_registBtn.backgroundColor=[UIColor lightGrayColor];
|
||||
gouxuan=YES;
|
||||
[MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL success) {
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user