-
Notifications
You must be signed in to change notification settings - Fork 14
Presenting Modal View Controllers
Timothy Lee edited this page Mar 3, 2014
·
4 revisions
Any view controller may present another view controller with some animation, commonly sliding up from below or fading in. Of course, as in Inception, that view controller can present another view controller which can present another view controller and so on. However, the common use case is to present a compose view or settings view, as depicted below.

This is a quick guide to presenting and dismissing view controllers.
In the implementation file of your view controller, import the view controller that you want to present.
#import "MainViewController.h"
// Import the view controller that you want to present
#import "ModalViewController.h"
@implementation MainViewController
...
@end
