I'm new to Xcode and am in the middle of creating an app and at the moment it can download and save a pdf file from URL. When clicking on the download button, it stays highlighted until the file is downloaded and then the rest of the code is carried out aka. the indicator appears after I've downloaded the file.
I've got the activity indicator code in front of my download code and I've put in an if statement to check the indicator is visible before downloading, but no luck.
Any help would be great
Thanks
I've got the activity indicator code in front of my download code and I've put in an if statement to check the indicator is visible before downloading, but no luck.
Code:
[_downloadActivity startAnimating];
if(_downloadActivity.hidden == FALSE){
....... \\download code
}
Any help would be great
Last edited by a moderator: