Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I dismiss a pushViewController in iPhone/iPad?

I need to make a button to dismiss the child view controller from a pushViewController. The action is exactly like the left (back) button on the top navigation bar.

How can I dismiss a pushViewController? Which method should I use ?

Thanks.

like image 712
user403015 Avatar asked Nov 17 '10 03:11

user403015


1 Answers

UINavigationController's popViewControllerAnimated: method should do it.

like image 78
Jacob Relkin Avatar answered Oct 23 '22 02:10

Jacob Relkin