This is my code that I have written in my project. Instead of a spinner I want to show an image.
progress= [[UIActivityIndicatorView alloc] initWithFrame: CGRectMake(125, 50, 30, 30)]; progress.backgroundColor = [UIColor redColor]; progress.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge; [self.view bringSubviewToFront:progress];