I use the following code to download a JSON from a web service.
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"my web service "]];
NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:&error];
NSString *json_string = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding];
I create my user interface according to this JSON string and I need to add a progress bar to my code. I have tried many examples but I cannot get the progress bar to display properly. Can anybody tell me how to use a progress bar to till my view did load. It will be a great help, thank you.