What line makes view controller to be presented modally


#1

Hello there,
I was reading these pages several times, but still didn’t get which lines of code exactly are making DetailViewController to be presented modally.
Here is what written in the book:

And then here is the code

DetailViewController *detailViewController = [[DetailViewController alloc] initForNewItem:YES];
    [detailViewController setItem:newItem];
    UINavigationController *navController = [[UINavigationController alloc]
                                initWithRootViewController:detailViewController];
    [self presentViewController:navController animated:YES completion:nil];

If I google this everywhere I see when somebody wants to present a view controller modally he uses PresentModalViewController. But since like it was deprecated anyway in iOS 6 and everybody recommends using PresentViewController I am trying to get the following - where exactly it understands that the view is set modally and not just in a normal way?
Because documentation tells just the following for presentViewController:animated:completion:

Thanks!


#2

presentViewController:animated:completion: does present the view controller modally. The word was just removed from the name of the method, since “presentation” means “modal” in iOS speak.


#3

Oh, I see… thanks a lot!