In my application I am using synchronous request for call webservice. And before each call I want to update my UILabel to show the progress. like:
lblTest.text=@"Downloading data XYZ";
NSData *dati = [NSURLConnection sendSynchronousRequest:richiesta returningResponse:&response error:&error];
lblTest.text=@"Downloading data ABC";
NSData *dati = [NSURLConnection sendSynchronousRequest:richiesta returningResponse:&response error:&error];
but label text is not getting changed.
anyone having any idea on this?
After searching a lot about this issue , I got a solution.
just need to initiate thread like:
and update label text as:
And this resolved my issue.