| | |
| | | //隐藏状态栏 |
| | | [[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]; |