| | |
| | | _centerView.backgroundColor = UIColor.whiteColor; |
| | | [self setRadiusWithView:_centerView]; |
| | | |
| | | _topUILabel= [[UILabel alloc] initWithFrame:CGRectMake(80, 20, APP_SCREEN_WIDTH-160, 24)]; |
| | | _topUILabel= [[UILabel alloc] initWithFrame:CGRectMake(80, GetRealHeight(20), APP_SCREEN_WIDTH-160, GetRealHeight(24))]; |
| | | _topUILabel.font = [UIFont fontWithName:APP_UIFont_BOLD size:15.0]; |
| | | _topUILabel.textColor = HEXCOLORA(0x333333, 1.0); |
| | | // _topUILabel.text = @"二次确认机"; |
| | |
| | | |
| | | - (UIView *)homeView{ |
| | | if (_homeView == nil) { |
| | | _homeView = [[UIView alloc] initWithFrame:CGRectMake(0, 268, APP_SCREEN_WIDTH, 36)]; |
| | | _homeView = [[UIView alloc] initWithFrame:CGRectMake(0, GetRealHeight(268), APP_SCREEN_WIDTH, GetRealHeight(36))]; |
| | | _homeView.backgroundColor = HEXCOLORA(0x232323, 1.0); |
| | | UIImageView *mUIImageView= [[UIImageView alloc] initWithFrame:CGRectMake(20, 4, 28, 28)]; |
| | | UIImageView *mUIImageView= [[UIImageView alloc] initWithFrame:CGRectMake(GetRealWidth(20), GetRealHeight(4), GetRealHeight(28), GetRealHeight(28))]; |
| | | mUIImageView.image = [UIImage imageNamed:@"ic_esvideo_home"]; |
| | | [mUIImageView setContentMode:UIViewContentModeScaleAspectFit]; |
| | | [_homeView addSubview:mUIImageView]; |
| | |
| | | |
| | | - (UILabel *)homeUILabel{ |
| | | if (_homeUILabel == nil) { |
| | | _homeUILabel = [[UILabel alloc] initWithFrame:CGRectMake(52, 8, APP_SCREEN_WIDTH - 100, 20)]; |
| | | _homeUILabel = [[UILabel alloc] initWithFrame:CGRectMake(GetRealWidth(52), 0, APP_SCREEN_WIDTH - GetRealWidth(100), _homeView.frame.size.height)]; |
| | | _homeUILabel.font = [UIFont fontWithName:APP_UIFont size:12.0]; |
| | | _homeUILabel.textColor = [UIColor whiteColor]; |
| | | // _homeUILabel.text = @"1栋203"; |
| | |
| | | |
| | | - (UIButton *)screenshotImgBtn{ |
| | | if (_screenshotImgBtn == nil) { |
| | | _screenshotImgBtn = [[UIButton alloc] initWithFrame:CGRectMake(80, 404, 58, 58)]; |
| | | _screenshotImgBtn = [[UIButton alloc] initWithFrame:CGRectMake(GetRealWidth(80), GetRealHeight(404), GetRealHeight(58), GetRealHeight(58))]; |
| | | [_screenshotImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_takephoto_unselect"] forState:UIControlStateNormal]; |
| | | // [_screenshotImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_takephoto_select"] forState:UIControlStateSelected]; |
| | | [_screenshotImgBtn.imageView setContentMode:UIViewContentModeScaleAspectFit]; |
| | |
| | | |
| | | - (UIButton *)screenshotTextBtn{ |
| | | if (_screenshotTextBtn == nil) { |
| | | _screenshotTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(59, 470, 100, 21)]; |
| | | _screenshotTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, GetRealHeight(470), GetRealWidth(100), GetRealHeight(21))]; |
| | | [_screenshotTextBtn setTitle:@"截图" forState:UIControlStateNormal]; |
| | | _screenshotTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | _screenshotTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:15.0]; |
| | |
| | | [_screenshotTextBtn addTarget:self action:@selector(screenshotAction) forControlEvents:UIControlEventTouchUpInside | UIControlEventTouchUpOutside]; |
| | | [_screenshotTextBtn addTarget:self action:@selector(screenshotDownAction) forControlEvents:UIControlEventTouchDown]; |
| | | _screenshotTextBtn.adjustsImageWhenHighlighted = NO; |
| | | _screenshotTextBtn.center = CGPointMake(_screenshotImgBtn.center.x, GetRealHeight(484)); |
| | | } |
| | | return _screenshotTextBtn; |
| | | } |
| | | |
| | | - (UIButton *)unlockImgBtn{ |
| | | if (_unlockImgBtn == nil) { |
| | | _unlockImgBtn = [[UIButton alloc] initWithFrame:CGRectMake(APP_SCREEN_WIDTH-138, 404, 58, 58)]; |
| | | _unlockImgBtn = [[UIButton alloc] initWithFrame:CGRectMake(APP_SCREEN_WIDTH-GetRealWidth(80)- GetRealHeight(58), GetRealHeight(404), GetRealHeight(58), GetRealHeight(58))]; |
| | | [_unlockImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_unlock_unselect"] forState:UIControlStateNormal]; |
| | | // [_unlockImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_unlock_select"] forState:UIControlStateSelected]; |
| | | [_unlockImgBtn.imageView setContentMode:UIViewContentModeScaleAspectFit]; |
| | |
| | | |
| | | - (UIButton *)unlockTextBtn{ |
| | | if (_unlockTextBtn == nil) { |
| | | _unlockTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(216, 470, 100, 21)]; |
| | | _unlockTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(216, GetRealHeight(470), GetRealWidth(100), GetRealHeight(21))]; |
| | | [_unlockTextBtn setTitle:@"开锁" forState:UIControlStateNormal]; |
| | | _unlockTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:15.0]; |
| | | _unlockTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | |
| | | // [_unlockTextBtn setTitleColor:TextSelectColor forState:UIControlStateSelected]; |
| | | [_unlockTextBtn addTarget:self action:@selector(unlockAction) forControlEvents:UIControlEventTouchUpInside]; |
| | | [_unlockTextBtn addTarget:self action:@selector(unlockDownAction) forControlEvents:UIControlEventTouchDown]; |
| | | _unlockTextBtn.adjustsImageWhenHighlighted = NO; |
| | | _unlockTextBtn.center = CGPointMake(_unlockImgBtn.center.x, GetRealHeight(484)); |
| | | } |
| | | return _unlockTextBtn; |
| | | } |