| | |
| | | -(UILabel *)titleUILabel{ |
| | | if (_titleUILabel == Nil) { |
| | | _titleUILabel = [[UILabel alloc] initWithFrame:CGRectMake(90, APP_STATUS_BAR_HEIGHT, self.view.frame.size.width - 180, 44)]; |
| | | _titleUILabel.font = [UIFont fontWithName:APP_UIFont_BOLD size:17.0]; |
| | | _titleUILabel.font = [UIFont fontWithName:APP_UIFont_BOLD size:18.0]; |
| | | _titleUILabel.textColor = TextColor; |
| | | _titleUILabel.text = @""; |
| | | _titleUILabel.textAlignment = NSTextAlignmentCenter; |
| | |
| | | _hangUpTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_hangUpTextBtn setTitle:@"拒绝" forState:UIControlStateNormal]; |
| | | _hangUpTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | _hangUpTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:15.0]; |
| | | _hangUpTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | [_hangUpTextBtn setTitleColor:TextColor forState:UIControlStateNormal]; |
| | | [_hangUpTextBtn setTitleColor:TextSelectColor forState:UIControlStateSelected]; |
| | | [_hangUpTextBtn addTarget:self action:@selector(screenshotAction) forControlEvents:UIControlEventTouchUpInside]; |
| | |
| | | if (_answerTextBtn == nil) { |
| | | _answerTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_answerTextBtn setTitle:@"接听" forState:UIControlStateNormal]; |
| | | _answerTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:15.0]; |
| | | _answerTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | _answerTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | // _unlockTextBtn.titleLabel.textColor = TextColor; |
| | | [_answerTextBtn setTitleColor:TextColor forState:UIControlStateNormal]; |
| | |
| | | -(UILabel *)titleUILabel{ |
| | | if (_titleUILabel == Nil) { |
| | | _titleUILabel = [[UILabel alloc] initWithFrame:CGRectMake(90, APP_STATUS_BAR_HEIGHT, self.view.frame.size.width - 180, 44)]; |
| | | _titleUILabel.font = [UIFont fontWithName:APP_UIFont_BOLD size:17.0]; |
| | | _titleUILabel.font = [UIFont fontWithName:APP_UIFont_BOLD size:18.0]; |
| | | _titleUILabel.textColor = TextColor; |
| | | _titleUILabel.text = @""; |
| | | _titleUILabel.textAlignment = NSTextAlignmentCenter; |
| | |
| | | _screenshotTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_screenshotTextBtn setTitle:@"截图" forState:UIControlStateNormal]; |
| | | _screenshotTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | _screenshotTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:15.0]; |
| | | _screenshotTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | [_screenshotTextBtn setTitleColor:TextColor forState:UIControlStateNormal]; |
| | | // [_screenshotTextBtn setTitleColor:TextSelectColor forState:UIControlStateSelected]; |
| | | [_screenshotTextBtn addTarget:self action:@selector(screenshotAction) forControlEvents:UIControlEventTouchUpInside | UIControlEventTouchUpOutside]; |
| | |
| | | if (_unlockTextBtn == nil) { |
| | | _unlockTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_unlockTextBtn setTitle:@"开锁" forState:UIControlStateNormal]; |
| | | _unlockTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:15.0]; |
| | | _unlockTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | _unlockTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | // _unlockTextBtn.titleLabel.textColor = TextColor; |
| | | [_unlockTextBtn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateDisabled]; |
| | |
| | | -(UILabel *)titleUILabel{ |
| | | if (_titleUILabel == Nil) { |
| | | _titleUILabel = [[UILabel alloc] initWithFrame:CGRectMake(90, APP_STATUS_BAR_HEIGHT, self.view.frame.size.width - 180, 44)]; |
| | | _titleUILabel.font = [UIFont fontWithName:APP_UIFont_BOLD size:17.0]; |
| | | _titleUILabel.font = [UIFont fontWithName:APP_UIFont_BOLD size:18.0]; |
| | | _titleUILabel.textColor = TextColor; |
| | | _titleUILabel.text = @""; |
| | | _titleUILabel.textAlignment = NSTextAlignmentCenter; |
| | |
| | | _hangUpTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_hangUpTextBtn setTitle:@"拒绝" forState:UIControlStateNormal]; |
| | | _hangUpTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | _hangUpTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:15.0]; |
| | | _hangUpTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | [_hangUpTextBtn setTitleColor:TextColor forState:UIControlStateNormal]; |
| | | [_hangUpTextBtn setTitleColor:TextSelectColor forState:UIControlStateSelected]; |
| | | [_hangUpTextBtn addTarget:self action:@selector(screenshotAction) forControlEvents:UIControlEventTouchUpInside]; |
| | |
| | | if (_answerTextBtn == nil) { |
| | | _answerTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_answerTextBtn setTitle:@"接听" forState:UIControlStateNormal]; |
| | | _answerTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:15.0]; |
| | | _answerTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | _answerTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | // _unlockTextBtn.titleLabel.textColor = TextColor; |
| | | [_answerTextBtn setTitleColor:TextColor forState:UIControlStateNormal]; |
| | |
| | | -(UILabel *)titleUILabel{ |
| | | if (_titleUILabel == Nil) { |
| | | _titleUILabel = [[UILabel alloc] initWithFrame:CGRectMake(90, APP_STATUS_BAR_HEIGHT, self.view.frame.size.width - 180, 44)]; |
| | | _titleUILabel.font = [UIFont fontWithName:APP_UIFont_BOLD size:17.0]; |
| | | _titleUILabel.font = [UIFont fontWithName:APP_UIFont_BOLD size:18.0]; |
| | | _titleUILabel.textColor = TextColor; |
| | | _titleUILabel.text = @""; |
| | | _titleUILabel.textAlignment = NSTextAlignmentCenter; |
| | |
| | | _screenshotTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_screenshotTextBtn setTitle:@"截图" forState:UIControlStateNormal]; |
| | | _screenshotTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | _screenshotTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:15.0]; |
| | | _screenshotTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | [_screenshotTextBtn setTitleColor:TextColor forState:UIControlStateNormal]; |
| | | // [_screenshotTextBtn setTitleColor:TextSelectColor forState:UIControlStateSelected]; |
| | | [_screenshotTextBtn addTarget:self action:@selector(screenshotAction) forControlEvents:UIControlEventTouchUpInside | UIControlEventTouchUpOutside]; |
| | |
| | | if (_unlockTextBtn == nil) { |
| | | _unlockTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_unlockTextBtn setTitle:@"开锁" forState:UIControlStateNormal]; |
| | | _unlockTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:15.0]; |
| | | _unlockTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | _unlockTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | // _unlockTextBtn.titleLabel.textColor = TextColor; |
| | | [_unlockTextBtn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateDisabled]; |