You can manual call the child view controller's viewWillAppear in parectViewController,code like this
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[selectedViewController viewWillAppear:animated];
}
if you have add a navigationController as childViewController you can add code like this in navigationController's delegate
-(void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[viewController viewWillAppear:animated];
}
if you have add a tabBarController as childViewController you can add code like this in tabBarController's delegate and super view
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.tabBarController.selectedViewController viewWillAppear:animated];
}
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
[viewController viewWillAppear:NO];
}
I don't know if this can solve your problem,hope be able to help you.