views:

117

answers:

0

so i have a view based ipad app. which i set the "supported interface orientations" and "initial interface orientation" properly. no problem here. all my view are load from nib and all my view in nib are set to be landscape.

i load my first view in xxxAppDelegate.h, perfectly fine here. the view load correctly.

and the problem come. when i try to load a new view and remove old one. the new one loaded as if it were portrait initially and then the view itself(actually the viewcontroller) fired the shouldAutorotateToInterfaceOrientation and correct its view. so in effect, i see the second view load portraitly and then rotate animately to the correct orientation.

is there a way so that i can set the view's initial orientation when the view loading? or can i cancel the animation of the view rotation?