Thursday, 19 September 2013

iOS - Load UIViewController in Specific Orientation

iOS - Load UIViewController in Specific Orientation

What i'm trying to do - is simply force start my ViewController in
Portrait mode regardless of its orientation:
after its initiated, it could just continue to follow the AutoRotate
functionality
This is probably along the answer I'm looking for : but the answer
contains a broken link



---- if interested, the reason i need this is:
i'm creating a PDF Reader in a UIView
in Portrait mode it can use the screen dimensions to load the PDF
proportionately
the UIView is set to UIViewAutoReSizingNone and UIViewContentModeLeft
this presents the PDF perfectly when the device Orientation changes to
landscape (of course I'm handling panning / zooming / positioning of the
PDF separately for a better presentation)
But when I launch the VC in landscape I have problems . . . .

No comments:

Post a Comment