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: