Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swipe to go back in navigation controller on iOS 7

I've been looking through the iOS 7 / UIKIT framework, and although it looks quite different aesthetically it's really the same SDK underneath from what I can see.

My question, is there any extra code that needs to be included to get the draggable behaviour between pushed tableviews/views?

When you push a view onto a UINavigationController you can now drag back to the previous controller from the side rather than pressing the back button.

This behavior can be seen in mail.

How is this achieved, do I need to add any code to add it to my app?

like image 909
Woodstock Avatar asked Sep 19 '13 18:09

Woodstock


1 Answers

This has nothing to do with UITableView or UITableViewController, but with UINavigationController. And yes, you get this behavior for free as long as the back button is visible.

like image 189
Scott Berrevoets Avatar answered Dec 13 '22 17:12

Scott Berrevoets