How to mimic UINavigation animation behavior when transitioning between two UITableViews
问题 I have a UIViewController that houses two UITableViews and swaps between the two. I'm wondering how can I implement the exact same animation behavior that a UINavigationController does when transitioning between these two UITableViews? (ie one tableView gets pushed off the screen left to right or right to left by the other tableView). 回答1: // Set table 2 up offscreen as starting state CGRect rect = tableView2.frame; rect.origin.x = rect.size.width; tableView2.frame = rect; // fill in any