---
title: "How to push a view controller to another view controller"  
description: "How to push a view controller to another view controller"  
author: "Anonymous User"  
published: 2015-11-25  
updated: 2016-01-18  
canonical: https://www.mindstick.com/forum/33636/how-to-push-a-view-controller-to-another-view-controller  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# How to push a view controller to another view controller

I am new in iPhone [development](https://www.mindstick.com/articles/65309/importance-of-ux-design-in-the-development-of-mobile-apps), so I want to know how can I [push](https://www.mindstick.com/forum/23133/push-not-showing-when-app-is-open) [one view controller](https://www.mindstick.com/interview/22801/can-we-use-two-tableview-controllers-on-one-view-controller) to another view controller using animations.\
I have added a Next [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net). whenever I [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) that button I am pushing one view controller to another view controller.\
Please help me.

## Replies

### Reply by Tarun Kumar

If you want to push one view to another [view controller](https://www.mindstick.com/forum/33709/how-to-use-table-view-controller-with-small-sized-in-ios) then you need to implement below code in action method of your Next button:

```
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];ImageViewController *imageViewController = (ImageViewController*)[mainstoryboard instantiateViewControllerWithIdentifier:@"ImageViewController"];
```

or in short you can use above code like this:

```
ImageViewController *imageViewController = [self.storyboard instantiateViewControllerViewIdentifier:@"ImageViewController"];
```

I hope above code is helpful for you.


---

Original Source: https://www.mindstick.com/forum/33636/how-to-push-a-view-controller-to-another-view-controller

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
