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:
Post a Comment