ios webview有多个请求
发布网友
发布时间:2022-05-18 15:12
我来回答
共1个回答
热心网友
时间:2023-10-18 18:22
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
NSString *bodyUnicode = [webview stringByEvaluatingJavaScriptFromString:@"document.body.innerText"];
NSString *bodyUtf=[self replaceUnicode:bodyUnicode];
NSLog(@"%@",@"加载结束");
if (flag==0)
{
if (imageView == nil)
{
[self cutOutMinuteData:bodyUtf];//处理数据
imageView = [[UIImageView alloc]initWithImage:[self minuteLines]];
[self.view addSubview:imageView];
[self readDetailInfo];//获取请求
load_flag = true;
}
//处理数据
else if (load_flag==true)
{
[self cutOutInfo:bodyUtf];//处理数据
DetailInformationView *detail=[[DetailInformationView alloc]initWithFrame:CGRectMake(0, 0, 360, 300) :m_listDataDetail ];
[self .view addSubview:detail];
NSString *title=[NSString stringWithFormat:@"%@%@%@%@%@%@",@"
}
}