I have a settings view controller with a table view. The table view is supposed to set its frame to be the frame of the view controller. My app only supports landscape mode, so
You have to implement this in your settings view controller:-
-(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationPortrait]; }