Member Since: Aug 13, 2011
Location: West Sussex, UK
03-28-2012, 01:55 PM
I think you would be better off creating a UIViewController class, then loading the xib file from that controller class's initWithNibName:bundle: method.
That way you can use the UIViewController class's shouldAutorotateToInterfaceOrientation: method, like this.
return (io == UIInterfaceOrientationPortrait || UIInterfaceOrientationIsLandscape(io);
The above implementation of the UIViewController method, will turn all views automatically
to the correct orientation.
Hope this helps.