Hacker News new | ask | show | jobs
by kevinh 5310 days ago
Assuming you programmed your app correctly, you only need to override the function shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation to return true for the supported orientations. If you use portrait orientation, you can get portrait upsidedown for "free", as it rotates the view for you. It's the same with LandscapeLeft and LandscapeRight. The only complications come when you want to support both portrait and landscape orientations, which isn't required anyway.