views:

354

answers:

1

Hi guys!

Is there any way to set the orientation of the UIActionSheet programatically? My iPhone orientation is Portrait, but the UIActionSheet need to be Landscape. Can this be done?

Edit:

So my problem is that I don't want to rotate the rootviewcontroller to landscape mode, only the UIActionSheet. So is this possible somehow?

+1  A: 

So I added a view to my view in which I want to display the UIActionSheet, then rotated the added view and then added the UIActionSheet in this view.

Infinity