rotating UITableViewController manually
Posted
by lope
on Stack Overflow
See other posts from Stack Overflow
or by lope
Published on 2009-11-23T23:18:57Z
Indexed on
2010/05/12
19:04 UTC
Read the original article
Hit count: 155
iphone
|cocoa-touch
Hi there, I am trying to do something I am not really sure is possible :)
I have application that is in portrait mode and doesn't react to device rotation. Almost all parts of app work best in portrait so I disabled autorotation. But one part should be viewed in landscape. I just drawed my view rotated by 90 degrees and with this forced user to rotate device (again no autorotation). Everything was ok until I added UITableViewController that is invoked from this (and only from this) rotated view. Table view is of course in portrait mode, so user has to rotate device again, which is not really user friendly experience. My problem is, how to manually rotate table view so it is in landscape mode without using autorotation feature. I was able to rotate it using transform, but I can't position it properly. Is this right way of doing this or did I missed something that would make this trivial task?
I don't want to use autorotation because both part are pretty separated from each other and each of them would be almost useless in other's mode
© Stack Overflow or respective owner