| | |
| | | @property (nonatomic, strong) UIButton *unlockImgBtn; //å¼é |
| | | @property (nonatomic, strong) UIButton *hangUpImgBtn;//æææé® |
| | | @property (nonatomic, strong) UIButton *hangUpTextBtn; |
| | | @property (nonatomic, strong) UIButton *hangUpAllImgBtn;//å
¨é¨æææé® |
| | | @property (nonatomic, strong) UIButton *hangUpAllTextBtn; |
| | | @property (nonatomic, strong) UIButton *answerImgBtn;//æ¥å¬æé® |
| | | @property (nonatomic, strong) UIButton *answerTextBtn; |
| | | @property (nonatomic, strong) UIButton *calltimeBtn; //éè¯æ¶é´æé® |
| | |
| | | NSString * answerStr; |
| | | NSString * unlockSuccessfullyStr; |
| | | NSString * callingStr; |
| | | NSString * hangUpStr; |
| | | NSString * hangUpStr;; |
| | | NSString * hangUpPhoneStr; |
| | | NSString * hangUpAllStr; |
| | | NSString * endOfCallStr; |
| | | |
| | | |
| | |
| | | refuseStr = @"æç»"; |
| | | answerStr = @"æ¥å¬"; |
| | | hangUpStr = @"ææ"; |
| | | hangUpPhoneStr = @"ææææº"; |
| | | hangUpAllStr = @"ææå
¨é¨"; |
| | | unlockSuccessfullyStr = @"å¼éæå"; |
| | | callingStr = @"æ¥çµä¸..."; |
| | | endOfCallStr = @"éè¯ç»æ"; |
| | |
| | | refuseStr = @"Refuse"; |
| | | answerStr = @"Answer"; |
| | | hangUpStr = @"Hang up"; |
| | | hangUpPhoneStr = @"Hang up"; |
| | | hangUpAllStr = @"hang up all"; |
| | | unlockSuccessfullyStr = @"Unlock successfully"; |
| | | callingStr = @"Incoming call"; |
| | | endOfCallStr = @"End of call"; |
| | |
| | | [self.unlockView addSubview:self.unlockImgBtn]; |
| | | [self.centerView addSubview:self.hangUpImgBtn]; |
| | | [self.centerView addSubview:self.hangUpTextBtn]; |
| | | [self.centerView addSubview:self.hangUpAllImgBtn]; |
| | | [self.centerView addSubview:self.hangUpAllTextBtn]; |
| | | [self.centerView addSubview:self.answerImgBtn]; |
| | | [self.centerView addSubview:self.answerTextBtn]; |
| | | [self.centerView addSubview:self.calltimeBtn]; |
| | |
| | | if (_hangUpImgBtn == nil) { |
| | | _hangUpImgBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, Height66, Height66)]; |
| | | [_hangUpImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_on_hangup"] forState:UIControlStateNormal]; |
| | | // [_hangUpImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_on_hangup"] forState:UIControlStateSelected]; |
| | | [_hangUpImgBtn.imageView setContentMode:UIViewContentModeScaleAspectFit]; |
| | | [_hangUpImgBtn addTarget:self action:@selector(hangUpAction) forControlEvents:UIControlEventTouchUpInside]; |
| | | _hangUpImgBtn.center = CGPointMake(APP_SCREEN_WIDTH/4, GetRealHeight(452) + Height66/2); |
| | | |
| | | _hangUpImgBtn.center = CGPointMake(APP_SCREEN_WIDTH/2, GetRealHeight(452) + Height66/2); |
| | | } |
| | | return _hangUpImgBtn; |
| | | } |
| | |
| | | //2.页é¢å
³é |
| | | [self backAction]; |
| | | } |
| | | |
| | | //å
¨é¨ææ 徿 æé® |
| | | - (UIButton *)hangUpAllImgBtn{ |
| | | if (_hangUpAllImgBtn == nil) { |
| | | _hangUpAllImgBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, Height66, Height66)]; |
| | | [_hangUpAllImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_on_hangup_all"] forState:UIControlStateNormal]; |
| | | [_hangUpAllImgBtn.imageView setContentMode:UIViewContentModeScaleAspectFit]; |
| | | [_hangUpAllImgBtn addTarget:self action:@selector(hangUpAllAction) forControlEvents:UIControlEventTouchUpInside]; |
| | | |
| | | _hangUpAllImgBtn.center = CGPointMake(GetRealWidth(77.5), GetRealHeight(452) + Height66/2); |
| | | } |
| | | return _hangUpAllImgBtn; |
| | | } |
| | | |
| | | //å
¨é¨æææé®äºä»¶ |
| | | -(void)hangUpAllAction{ |
| | | //1.åè°äºä»¶ |
| | | if(self.hdlLinphoneCallDelegate != NULL){ |
| | | [self.hdlLinphoneCallDelegate onRejectAllCallAction]; |
| | | } |
| | | //2.页é¢å
³é |
| | | [self backAction]; |
| | | } |
| | | //ææ¥ ææ¬æé® |
| | | - (UIButton *)hangUpTextBtn{ |
| | | if (_hangUpTextBtn == nil) { |
| | | _hangUpTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_hangUpTextBtn setTitle:@"æç»" forState:UIControlStateNormal]; |
| | | [_hangUpTextBtn setTitle:hangUpPhoneStr forState:UIControlStateNormal]; |
| | | _hangUpTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | _hangUpTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | [_hangUpTextBtn setTitleColor:TextColor forState:UIControlStateNormal]; |
| | |
| | | } |
| | | return _hangUpTextBtn; |
| | | } |
| | | //å
¨é¨ææ ææ¬æé® |
| | | - (UIButton *)hangUpAllTextBtn{ |
| | | if (_hangUpAllTextBtn == nil) { |
| | | _hangUpAllTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_hangUpAllTextBtn setTitle:hangUpAllStr forState:UIControlStateNormal]; |
| | | _hangUpAllTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | _hangUpAllTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | [_hangUpAllTextBtn setTitleColor:TextColor forState:UIControlStateNormal]; |
| | | [_hangUpAllTextBtn setTitleColor:TextSelectColor forState:UIControlStateSelected]; |
| | | [_hangUpAllTextBtn addTarget:self action:@selector(screenshotAction) forControlEvents:UIControlEventTouchUpInside]; |
| | | _hangUpAllTextBtn.center = CGPointMake(_hangUpAllImgBtn.center.x, GetRealHeight(530)); |
| | | |
| | | } |
| | | return _hangUpAllTextBtn; |
| | | } |
| | | |
| | | //æ¥å¬ 徿 æé® |
| | | - (UIButton *)answerImgBtn{ |
| | | if (_answerImgBtn == nil) { |
| | | _answerImgBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, Height66, Height66)]; |
| | | [_answerImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_on_answer"] forState:UIControlStateNormal]; |
| | | // [_answerImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_on_answer"] forState:UIControlStateSelected]; |
| | | [_answerImgBtn.imageView setContentMode:UIViewContentModeScaleAspectFit]; |
| | | [_answerImgBtn addTarget:self action:@selector(answerIAction) forControlEvents:UIControlEventTouchUpInside]; |
| | | |
| | | _answerImgBtn.center = CGPointMake((APP_SCREEN_WIDTH/4)*3, GetRealHeight(452) + Height66/2); |
| | | _answerImgBtn.center = CGPointMake(APP_SCREEN_WIDTH-GetRealWidth(77.5), GetRealHeight(452) + Height66/2); |
| | | } |
| | | return _answerImgBtn; |
| | | } |
| | |
| | | |
| | | _answerImgBtn.hidden = YES; |
| | | _answerTextBtn.hidden = YES; |
| | | _hangUpAllImgBtn.hidden = YES; |
| | | _hangUpAllTextBtn.hidden = YES; |
| | | |
| | | //æææé®ç§»å¨ä¸é´ |
| | | _hangUpImgBtn.center = CGPointMake(APP_CONTENT_WIDTH / 2, _hangUpImgBtn.center.y); |
| | |
| | | - (UIButton *)answerTextBtn{ |
| | | if (_answerTextBtn == nil) { |
| | | _answerTextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, GetRealWidth(100), GetRealWidth(20))]; |
| | | [_answerTextBtn setTitle:@"æ¥å¬" forState:UIControlStateNormal]; |
| | | [_answerTextBtn setTitle:answerStr forState:UIControlStateNormal]; |
| | | _answerTextBtn.titleLabel.font = [UIFont fontWithName:APP_UIFont size:14.0]; |
| | | _answerTextBtn.titleLabel.textAlignment = NSTextAlignmentCenter; |
| | | // _unlockTextBtn.titleLabel.textColor = TextColor; |
| | |
| | | //åå§ååæ° |
| | | -(void)initData{ |
| | | // _titleUILabel.text = [[LCApiKit sharedInstance] currentDeviceName]; |
| | | [_hangUpTextBtn setTitle:refuseStr forState:UIControlStateNormal]; |
| | | [_hangUpTextBtn setTitle:hangUpPhoneStr forState:UIControlStateNormal]; |
| | | [_hangUpAllTextBtn setTitle:hangUpAllStr forState:UIControlStateNormal]; |
| | | [_answerTextBtn setTitle:answerStr forState:UIControlStateNormal]; |
| | | |
| | | } |