Reputation: 1265
I have a UINavigationController
, its root controller (UITableViewController
) and an instance of UIViewController
that is pushed to the top of Navigation when I click on a cell in Navigation Controller's root view (i.e. table view). The problem comes, when I swipe from a view controller to the root one. The selection doesn't disappear though I send deselectRowAtIndexPath:animated:
message in its table view. If I click on the back button it works properly. How do I solve this issue? Thank you in advance!
Upvotes: 0
Views: 21
Reputation: 77661
There is a property of UITableViewController
called clearsSelectionOnViewWillAppear
.
If you set that to YES (I believe you can access this in IB int eh inspector too) then it will stop this happening.
Upvotes: 1