iOS 7 - Uzyskiwanie komunikatu ostrzegawczego podczas prezentacji kontrolera widoku modalnego

Kompilowanie i uruchamianie za pomocą iOS 7 - Otrzymuję komunikat ostrzegawczy: „Nie zaleca się prezentowania kontrolerów widoku na odłączonych kontrolerach widoku” podczas prezentacji kontrolera widoku modalnego. Nigdy nie miałem problemu z wersją iOS 6 lub wcześniejszą. Czy ktoś może pokazać, czy coś się zmieniło podczas prezentacji kontrolera widoku modalnego?

SearchViewController *controller1;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
    controller1 = [[SearchViewController alloc] initWithNibName:@"SearchViewController-iPad" bundle:nil];
}
else
{
   controller1 = [[SearchViewController alloc] initWithNibName:@"SearchViewController" bundle:nil];
}
controller1.delegate = self;
[[self navigationController] presentModalViewController:controller1 animated:YES];

*EDYTOWAĆ * Oto kod Czy ktoś może wskazać, gdzie jest zagnieżdżony. Wygląda na to, że są zagnieżdżone, zasugeruj, jak połączyć za pomocą wzorca childcontroller.

(void)applicationDidFinishLaunching:(UIApplication *)application
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    {
        self.loginRootviewController =   [[MainViewController alloc] initWithNibName:@"MainViewController-iPad" bundle:nil];
    }
    else
    {
       self.loginRootviewController =   [[MainViewController alloc] initWithNibName:@"MainViewController" bundle:nil];
    }

    UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:self.loginRootviewController];


    DDMenuController *rootController = [[DDMenuController alloc] initWithRootViewController:navController];
    _menuController = rootController;



    AppMainMenuViewController *leftController = [[AppMainMenuViewController alloc] init];
    rootController.leftViewController = leftController;
    self.loginRootviewController.delegateLogin = leftController;

    self.window.rootViewController = rootController;

    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];

}

questionAnswers(11)

yourAnswerToTheQuestion