Ios Storyboards
# iOS Storyboards
* * *
## Introduction
Storyboards were introduced in iOS 5. When using Storyboards, the deployment target should be iOS 5.0 or later.
Storyboards help us understand the visual flow of the application, creating all application screens under the interface file MainStoryboard.storyboard.
### Example Steps
1. Create a single view application. When creating the application, select the storyboard checkbox.
2. Select MainStoryboard.storyboard. Here you can find the single view controller. Add a view controller and update the view controller as shown below.

3. Connect the two view controllers. Right-click the "show modal" button on the left view controller and drag it to the right view controller, as shown in the following figure:

4. Now, from the three display options shown below, select "modal".

5. Update ViewController.h as shown below.
```objectivec
#import
@interface ViewController : UIViewController
-(IBAction)done:(UIStoryboardSegue *)seque;
@end
6. Update ViewController.m as shown below.
```objectivec
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
;
}
- (void)didReceiveMemoryWarning {
;
// Dispose of any resources that can be recreated.
}
-(IBAction)done:(UIStoryboardSegue *)seque{
[self.navigationController popViewControllerAnimated:YES];
}
@end
7. Select "MainStoryboard.storyboard", right-click the "Exit" button, and select and connect the back button in the right view controller, as shown in the following figure.

### Output
Run the application on an iPhone device to get the following output.

Now, select "Show Modal" to get the following output.

YouTip