drexsien
drexsien

Reputation: 952

UITableViewController won't do UIDeviceOrientationPortraitUpsideDown orientation

i got a problem on my UITableViewController it wont do UIDeviceOrientationPortraitUpsideDown orientation. I already set on shouldAutorotateToInterfaceOrientation function allowing the two portrait orientations.

Here's my code on implementing my UITableViewController

UITableViewController *controller = [[UITableViewController alloc] initWithStyle:UITableViewStyleGrouped];
controller.tableView.delegate = self;
controller.tableView.dataSource = self;
controller.tableView.scrollEnabled = NO;

thanks

Upvotes: 0

Views: 618

Answers (1)

Aaron Brager
Aaron Brager

Reputation: 66302

The most likely explanation is that your app itself won't support upside-down (the Apple human interface guidelines suggest that iPhone apps should not be rotated upside-down.) You can modify this in your project settings within Xcode.

Four rotation options within Xcode.

If that's not it, can you post your code for shouldAutorotateToInterfaceOrientation?

Upvotes: 1

Related Questions