Can xcode rotate an UI item without using code?

I see a lot of people are using code under viewDidLoad to be able to rotate their objects, but isn`t there any way for xcode to do this initally?

If not, what is the most efficient/best way to do it?

Thank you.


Interface Builder has currently no support for setting transform on views (or on their backing layers). You're bound to do it by code.

You can set base view to landscape in the interface builder and build it like that. So everything will be rotated 90 degrees. Also do not forget to edit your shouldAutorotateToInterfaceOrientation method. In the case that you only want to rotate some objects and not all of them you are going to have to go with the transforms as Cyrille said.

Need Your Help

Why Components.classes is undefined?

javascript firefox firefox-addon

In Firefox when I am running the following code:

change the color of a vertex in a vertex shader

opengl glsl vertex-shader

Is it possible to set the color of a single vertex using a GLSL vertex shader program, in the same way that gl_Position changes the position of a vertex ?