I have a UIView, that contains a navigation bar, and UITableView. I implemented a UIViewController that implements a UITableViewDelegate. I over-rided the shouldAutorotateForInterfaceOrientation for the UIViewController to return YES for lan开发者_如何转开发dscape and portrait mode. But the View does not seem to rotate. I did a similar thing without the Navigation bar and the Tableview and the view rotates.
Is is something i am missing.
You need to override -shouldAutorotateForInterfaceOrientation: in your UIViewController, not the view itself.
精彩评论