Hi, I have an application that perfectly works on iPhone os 2.2.1 but when I try to run it on iPhone os 3.0 it crushes.
Here is the error I got from the console:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Changing the delegate of a tab bar managed by a tab bar controller is not allowed.'
Probably it occurs because I am changing the view of a certain view controller programmatically.
Here is the code:
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear: animated];
self.view = current_controller.view;
[current_controller viewWillAppear: NO];
[current_controller viewDidAppear: NO];
}
May an error occur in this part of code and if yes how can I fix it? Why else could it occur?
Thank you in advance, Ilya.