How to press “Back” button in UINavigationController programmatically?

Up vote 1 down vote favorite share g+ share fb share tw.

I have UIViewController called FriendsViewController with UINavigationController. And the second UIViewController called FriendsDetailedViewController. I navigate from first view controller to second, and I want programmatically press Back button when i'll need this.

How to do this? Iphone objective-c ios uiviewcontroller uinavigationcontroller link|improve this question edited Oct 4 '11 at 9:50Nekto8,2161421 asked Oct 4 '11 at 9:48Timur Mustafaev3428 60% accept rate.

Simply use self. NavigationController popViewControllerAnimated:YES from FriendsDetailedViewController. Your view will be popped out i.e.

The behavior of back button.

Thanks for reply – Timur Mustafaev Oct 4 '11 at 10:08.

If by pressing "Back" button you mean just to go to the previous view controller, you can just call: self. NavigationController popViewControllerAnimated:YES.

If by pressing "Back" button you mean just to go to the previous view controller, you can just call.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions