iOS webview同时请求两个url数据

- (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:@"%@%@%@%@%@%@",@"
           }
}

猜你喜欢

转载自cydd.iteye.com/blog/2169135