| | |
| | | NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationLandscapeLeft]; |
| | | [[UIDevice currentDevice] setValue:value forKey:@"orientation"]; |
| | | } |
| | | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ |
| | | [self.largeButton setImage:[UIImage imageNamed:@"preview_enlarge_full"] forState:UIControlStateNormal]; |
| | | [self.largeButton setImage:[UIImage imageNamed:@"preview_enlarge_full_btn_sel"] forState:UIControlStateHighlighted]; |
| | | }); |
| | | } |
| | | |
| | | - (IBAction)largeBack:(id)sender |
| | |
| | | NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationPortrait]; |
| | | [[UIDevice currentDevice] setValue:value forKey:@"orientation"]; |
| | | } |
| | | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ |
| | | [self.largeButton setImage:[UIImage imageNamed:@"preview_enlarge"] forState:UIControlStateNormal]; |
| | | [self.largeButton setImage:[UIImage imageNamed:@"preview_enlarge_btn_sel"] forState:UIControlStateHighlighted]; |
| | | }); |
| | | } |
| | | |
| | | - (IBAction)capture:(id)sender |
| | |
| | | // [UIView dd_showMessage:@"忽略开发中..."]; |
| | | self.isShowAlert = NO; |
| | | self.isAnswering = NO; |
| | | [self.navigationController popViewControllerAnimated:YES]; |
| | | } |
| | | |
| | | - (IBAction)clickCalloutAnswerAction:(id)sender { |
| | |
| | | HDLEZLog(@"###########接听####:%@", [responseData yy_modelToJSONString]); |
| | | }]; |
| | | } |
| | | [self.navigationController popViewControllerAnimated:YES]; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | // CGFloat averageWidth = [UIScreen mainScreen].bounds.size.width/5.0; |
| | | UIImageView *lineImageView1 = [UIView dd_instanceVerticalLine:20 color:[UIColor grayColor]]; |
| | | UIImageView *lineImageView1 = [UIView dd_instanceVerticalLine:20 color:HDLEZHEXCOLOR(0xFFFFFF, 0.16)]; |
| | | // lineImageView1.frame = CGRectMake(averageWidth, 7, lineImageView1.frame.size.width, lineImageView1.frame.size.height); |
| | | [self.toolBar addSubview:lineImageView1]; |
| | | [lineImageView1 mas_makeConstraints:^(MASConstraintMaker *make) { |
| | |
| | | make.width.mas_equalTo(lineImageView1.frame.size.width); |
| | | make.height.mas_equalTo(lineImageView1.frame.size.height); |
| | | }]; |
| | | UIImageView *lineImageView2 = [UIView dd_instanceVerticalLine:20 color:[UIColor grayColor]]; |
| | | UIImageView *lineImageView2 = [UIView dd_instanceVerticalLine:20 color:HDLEZHEXCOLOR(0xFFFFFF, 0.16)]; |
| | | // lineImageView2.frame = CGRectMake(averageWidth * 2, 7, lineImageView2.frame.size.width, lineImageView2.frame.size.height); |
| | | [self.toolBar addSubview:lineImageView2]; |
| | | [lineImageView2 mas_makeConstraints:^(MASConstraintMaker *make) { |
| | |
| | | make.width.mas_equalTo(lineImageView2.frame.size.width); |
| | | make.height.mas_equalTo(lineImageView2.frame.size.height); |
| | | }]; |
| | | UIImageView *lineImageView3 = [UIView dd_instanceVerticalLine:20 color:[UIColor grayColor]]; |
| | | UIImageView *lineImageView3 = [UIView dd_instanceVerticalLine:20 color:HDLEZHEXCOLOR(0xFFFFFF, 0.16)]; |
| | | // lineImageView3.frame = CGRectMake(averageWidth * 3, 7, lineImageView3.frame.size.width, lineImageView3.frame.size.height); |
| | | [self.toolBar addSubview:lineImageView3]; |
| | | [lineImageView3 mas_makeConstraints:^(MASConstraintMaker *make) { |
| | |
| | | make.width.mas_equalTo(lineImageView3.frame.size.width); |
| | | make.height.mas_equalTo(lineImageView3.frame.size.height); |
| | | }]; |
| | | UIImageView *lineImageView4 = [UIView dd_instanceVerticalLine:20 color:[UIColor grayColor]]; |
| | | UIImageView *lineImageView4 = [UIView dd_instanceVerticalLine:20 color:HDLEZHEXCOLOR(0xFFFFFF, 0.16)]; |
| | | // lineImageView4.frame = CGRectMake(averageWidth * 4, 7, lineImageView4.frame.size.width, lineImageView4.frame.size.height); |
| | | [self.toolBar addSubview:lineImageView4]; |
| | | [lineImageView4 mas_makeConstraints:^(MASConstraintMaker *make) { |