ios - Run code For each element of an array -


this question has answer here:

i have following code

 downloadoperations *dataobj=[[downloadoperations alloc]init]; [dataobj id];  nsstring *body=[nsstring stringwithformat:@"<?xml version='1.0' encoding='utf-8'?><soap:envelope xmlns:xsi='http://www.w3.org/2001/xmlschema-instance' xmlns:xsd='http://www.w3.org/2001/xmlschema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:body><getdocumentupdatedinfo xmlns='http://tempuri.org/'><documentid>%@</documentid></getdocumentupdatedinfo></soap:body></soap:envelope>", [dataobj id]]; nslog(@"body %@", body); 

in code [dataobj id] nsmutablearray , nsstring (body) soap request requires string value. how can soap request run iterativly each element of array?

int loopcount = 0; while (loopcount < [[dataobj id] count]){     //do stuff [[dataobj id] objectatindex:loopcount]     loopcount++; } 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -