Note: this question is from 2008 and now is of only historic interest.
What's the best way to create an iPhone application that runs in landscape mode from the start, regardless of the position of the device?
Both programmatically and using the Interface Builder.
See this answer: Landscape Mode ONLY for iPhone or iPad
Although if you're using mixed modes, you might be better off with
sasb's and michaelpryor's answer appears to be correct, but if it's not working for you, try this alternative:
Or this one:
Or this one:
You may also have to call
window makeKeyAndVisible;
first.A few links: Developing in landscape mode, iPhone SDK: How to force Landscape mode only?
@Robert: please refer to The iPhone SDK, NDA, and Stack Overflow.