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 that's the orientation I'm always in.
However, when the settings view controller loads, the table view has the portrait mode frame of the view controller, even though it's in landscape (360 by 480 when it should be 480 by 360).
Additionally, when I checked to see if the device thought it was in portrait mode, it returned true.
What is causing the problem and how can I fix it?