When I start UIActivityIndicatorView using StartAnimating method: [ActivityIcon startAnimating];
it disable all user interactions so when the user Tap on Cancel button which should abort the download process and hide the UIActivityIndicator it does not work!!!
any suggestions would be appreciated.
Edit: I am using separate thread to download the files in the background. All progress reporting and UI interaction I made it through:
[self performSelectorOnMainThread:@selector(RefreshScreen:) withObject:nil waitUntilDone:YES];
and RefreshScreen method is the one who interact with the UI elements.
[request startSynchronous];to:[request startAsynchronous];[request startSynchronous]that's why everything is blocked: It's a synchronous request, this means everything is blocked and is working step-by-step. What you need is to do a ASYNCHRONOUS request, this means nothing is blocked and you can provide additional information about the progress, etc.