I have called SVProgressHUD
on viewDidLoad
as follows:
[SVProgressHUD showWithStatus:@"Loading"];
[NSURLConnection sendAsynchronousRequest:request queue:queue completionHandler:^(NSURLResponse *response, NSData *data, NSError *error)
{
if ([data length] > 0 && error == nil)
{
//do some task
[SVProgressHUD dismiss];
}
}];
But here is what I get: SVProgressHUD
is not showing up. Where am I getting wrong?