| | |
| | | //隐藏状态栏 |
| | | [[UIApplication sharedApplication] setStatusBarHidden:YES]; |
| | | //添加返回按钮 |
| | | UIButton *backButton=[[UIButton alloc] initWithFrame:CGRectMake(15, 15, 32, 32)]; |
| | | CGFloat height = 15; |
| | | if (KIsiPhoneX) { |
| | | height = 35; |
| | | } |
| | | UIButton *backButton=[[UIButton alloc] initWithFrame:CGRectMake(15, height, 32, 32)]; |
| | | [backButton setImage:[UIImage imageNamed:@"取消登录"] forState:UIControlStateNormal]; |
| | | [backButton addTarget:self action:@selector(presentBack) forControlEvents:UIControlEventTouchUpInside]; |
| | | [self.view addSubview:backButton]; |
| | |
| | | settingwebVC.webTitle=@"用户协议&隐私条款"; |
| | | settingwebVC.requestURL=[NSString stringWithFormat:@"%@/api_control_ios.jsp",iconImageUrl]; |
| | | if(_ispresent){//模态跳转 |
| | | settingwebVC.ispresent = YES; |
| | | [self presentViewController:settingwebVC animated:YES completion:^{ |
| | | |
| | | }]; |
| | |
| | | * @param sender QQ登录的按钮 |
| | | */ |
| | | -(void)ClickQQ:(UIButton*)sender{ |
| | | |
| | | if (![[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"mqq://"]]){ |
| | | [SVProgressHUD showInfoWithStatus:@"您还没有安装QQ哦"]; |
| | | |
| | | return; |
| | | } |
| | | |
| | | [[UMSocialManager defaultManager] getUserInfoWithPlatform:UMSocialPlatformType_QQ currentViewController:nil completion:^(id result, NSError *error) { |
| | | if (error) { |
| | | |