Commit 36f1e2f269c7f9bc38be22e8d3ca86cdfc515b5b
1 parent
86736090
删除重复代码
Showing
1 changed file
with
0 additions
and
14 deletions
CNLiveScioLive/Pages/Live/Controller/GraphicLiveViewController.m
| @@ -381,20 +381,6 @@ | @@ -381,20 +381,6 @@ | ||
| 381 | - (void)setUpUIWithTag:(NSInteger)tag Height:(NSInteger)height{ | 381 | - (void)setUpUIWithTag:(NSInteger)tag Height:(NSInteger)height{ |
| 382 | 382 | ||
| 383 | if (1000 == tag) { | 383 | if (1000 == tag) { |
| 384 | - CGRect frame = relatedWebView.frame; | ||
| 385 | - frame.size.width = MainScreenWidth; | ||
| 386 | - frame.size.height = 1; | ||
| 387 | - relatedWebView.frame = frame; | ||
| 388 | -// descriptionHeight = relatedWebView.scrollView.contentSize.height; | ||
| 389 | - [relatedWebView evaluateJavaScript:@"document.body.scrollHeight"completionHandler:^(id _Nullable result,NSError * _Nullable error){ | ||
| 390 | - NSLog(@"scrollHeight高度:%.2f",[result floatValue]); | ||
| 391 | - descriptionHeight = [result floatValue]; | ||
| 392 | - dispatch_async(dispatch_get_main_queue(), ^{ | ||
| 393 | - [relatedWebView setFrame:CGRectMake(0, 0, MainScreenWidth, descriptionHeight)]; | ||
| 394 | - | ||
| 395 | - }); | ||
| 396 | - }]; | ||
| 397 | -// [relatedWebView setFrame:CGRectMake(0, 0, MainScreenWidth, descriptionHeight)]; | ||
| 398 | lineImage1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, descriptionHeight, MainScreenWidth, 1)]; | 384 | lineImage1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, descriptionHeight, MainScreenWidth, 1)]; |
| 399 | lineImage1.backgroundColor = Color_Line; | 385 | lineImage1.backgroundColor = Color_Line; |
| 400 | [backgroundView addSubview:lineImage1]; | 386 | [backgroundView addSubview:lineImage1]; |