I have built a new view with an activity indicator attached, loading this nib, seems to be working fine on another view:
- (void)viewDidLoad {
[super viewDidLoad];
ProgressViewController *progresssView = [[ProgressViewController alloc] initWithNibName:@"ProgressViewController" bundle:nil];
[self.view addSubview:progresssView.view];
}
The problem is when I try and remove the view when the data has been loaded:
- (void)parserDidEndDocument:(NSXMLParser *)parser {
ProgressViewController *progresssView = [[ProgressViewController alloc] initWithNibName:@"ProgressViewController" bundle:nil];
[progresssView.view removeFromSuperview];
NSLog(@"All done");
[dataTable reloadData];
}
Any help welcome...