Hello,
I have an app which needs some data initially and this takes som e time to load. To inform the user, I thought I could load something in the init method and then in the viewDidLoad call the actual nobfiel to be loaded. But it does not work. My approach is:
It is not neccesary to show this indication more than once when the data is read, ie on init.
Any tips?
thanks in advance!
MACloop
I have an app which needs some data initially and this takes som e time to load. To inform the user, I thought I could load something in the init method and then in the viewDidLoad call the actual nobfiel to be loaded. But it does not work. My approach is:
Code:
-(id) initWithTabBar {
if ([self init]) {
//add sometiing to tell the user - ideally a activation indicator or a label...
}
return self;
}
- (void)viewDidLoad {
//remove the indicator and load the actual nibfile like:
[super viewDidLoad];
[[NSBundle mainBundle] loadNibNamed:@"myNibFile" owner:self options:nil];
}
It is not neccesary to show this indication more than once when the data is read, ie on init.
Any tips?
thanks in advance!
MACloop