The activity indicator is not hidden when the web page has finished loading. Here is my
.h file
@interface PropertyViewController : UIViewController{ IBOutlet UIWebView *propertyNexusHome; IBOutlet UIActivityIndicatorView *wheel; NSTimer *timer; }
.m file
- (void)viewDidLoad { [super viewDidLoad]; [property loadRequest:[NSURLRequest requestWithURL: [NSURL URLWithString:@"http://www.google.com"]]]; [property addSubview:wheel]; timer = [NSTimer scheduledTimerWithTimeInterval:(1.0/2.0) target:self selector:@selector(loading) userInfo:nil repeats:YES];
Iβm not sure why it doesnβt disappear, no matter how it stops spinning when the page loads.
Thanks in advance.
source share