Wednesday, October 3, 2012

Autorotate in Rubymotions


Add

in rake

require 'motion-cocoapods' and app.interface_orientations = [:portrait]

IN controller 

def shouldAutorotateToInterfaceOrientation(*)

    @orientation=Device.orientation


    return UIInterfaceOrientationLandscapeLeft
  end


in  @orientation you will get orientation

No comments: