Managing two NSURLConnection

前端 未结 3 468
终归单人心
终归单人心 2021-01-23 11:04

I want to do two async request from two different kml file, so I setup two requests first:

NSString *server1URL = [NSString stringWithFormat:...];
NSMutableURLRe         


        
3条回答
  •  一生所求
    2021-01-23 11:29

    - (void)connectionDidFinishLoading:(NSURLConnection *)connection{
        if( [connection isEqual: AConnection] ){
            // do connection A stuff
        }
        else if( [connection isEqual: BConnection] ){
            // do connection B stuff
        }  
    }
    

提交回复
热议问题