Sha256: fa6f0bc4f99bf6e8bb17a5ebd8dfdee3173a57f2b2438f1c76ce10dc46f26deb

Contents?: true

Size: 391 Bytes

Versions: 19

Compression:

Stored size: 391 Bytes

Contents

class LandscapeOnlyController < UIViewController

  def viewDidLoad
    UIApplication.sharedApplication.windows[0].rootViewController = MainController.alloc.init
  end

  def shouldAutorotateToInterfaceOrientation(orientation)
    if orientation == UIInterfaceOrientationLandscapeLeft or orientation == UIInterfaceOrientationLandscapeRight
      true
    else
      false
    end
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
teacup-2.1.12 app/controllers/landscape_only_controller.rb
teacup-2.1.11 app/controllers/landscape_only_controller.rb
teacup-2.1.10 app/controllers/landscape_only_controller.rb
teacup-2.1.9 app/controllers/landscape_only_controller.rb
teacup-2.1.8 app/controllers/landscape_only_controller.rb
teacup-2.1.7 app/controllers/landscape_only_controller.rb
teacup-2.1.6 app/controllers/landscape_only_controller.rb
teacup-2.1.5 app/controllers/landscape_only_controller.rb
teacup-2.1.4 app/controllers/landscape_only_controller.rb
teacup-2.1.3 app/controllers/landscape_only_controller.rb
teacup-2.1.2 app/controllers/landscape_only_controller.rb
teacup-2.1.1 app/controllers/landscape_only_controller.rb
teacup-2.1.0 app/controllers/landscape_only_controller.rb
teacup-2.0.6 app/controllers/landscape_only_controller.rb
teacup-2.0.5 app/controllers/landscape_only_controller.rb
teacup-2.0.4 app/controllers/landscape_only_controller.rb
teacup-2.0.3 app/controllers/landscape_only_controller.rb
teacup-2.0.2 app/controllers/landscape_only_controller.rb
teacup-2.0.0 app/controllers/landscape_only_controller.rb