SettingsViewController: fix "Unbalanced calls to begin/end appearance transitions for <IASKAppSettingsViewControllerEx: " log error by not calling ViewWillAppear twice

This commit is contained in:
Gautier Pelloux-Prayer 2015-09-01 09:53:44 +02:00
parent fa8a44eb5f
commit 8a8cb70c92

View file

@ -350,7 +350,7 @@
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
[UINavigationControllerEx removeBackground:viewController.view];
[viewController viewWillAppear:animated]; // Force view
[viewController view]; // Force view
UILabel *labelTitleView = [[UILabel alloc] init];
labelTitleView.backgroundColor = [UIColor clearColor];
labelTitleView.textColor = [UIColor colorWithRed:0x41 / 255.0f green:0x48 / 255.0f blue:0x4f / 255.0f alpha:1.0];