Forum Archive

Force Landscape on iPad using UI Module

techteej

Is there any way to force the view to launch in landscape on iPad using the UI module like in scene?

Dann239
#force portrait for iPhone

self.screensize = ui.get_screen_size()
        if self.screensize[0] < 768:
            display = 'portrait'
        else:
            display = ' '
view.present(orientations=[display])

I believe this is correct.

techteej

Thanks!