I noticed that this problem discussed elsewhere, and I've tried a number of solutions such as adding:
- (void)navigationController:(UINavigationController *)navigationController
willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[viewController viewWillAppear:animated];
}
Another solution is to call them manually!
The problem is, in both cases, that when i load modal view controller in the view, things appear to work normally, and this results in calling the viewWillAppear twice!
Why it is working when I load the modal view controller? and is there a better solution to this?