Sha256: 5210dccb97c78128324727dc9390aa324e521887bd074c937845e513375bfce3

Contents?: true

Size: 392 Bytes

Versions: 19

Compression:

Stored size: 392 Bytes

Contents

class LandscapeOnlyController < UIViewController

  def viewDidLoad
    UIApplication.sharedApplication.windows[0].rootViewController = FirstController.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-1.3.4 app/controllers/landscape_only_controller.rb
teacup-1.3.3 app/controllers/landscape_only_controller.rb
teacup-1.3.2 app/controllers/landscape_only_controller.rb
teacup-1.3.1 app/controllers/landscape_only_controller.rb
teacup-1.3.0 app/controllers/landscape_only_controller.rb
teacup-1.2.9 app/controllers/landscape_only_controller.rb
teacup-1.2.8 app/controllers/landscape_only_controller.rb
teacup-1.2.7 app/controllers/landscape_only_controller.rb
teacup-1.2.5 app/controllers/landscape_only_controller.rb
teacup-1.2.4 app/controllers/landscape_only_controller.rb
teacup-1.2.3 app/controllers/landscape_only_controller.rb
teacup-1.2.2 app/controllers/landscape_only_controller.rb
teacup-1.0.4 app/controllers/landscape_only_controller.rb
teacup-1.0.3 app/controllers/landscape_only_controller.rb
teacup-1.0.2 app/controllers/landscape_only_controller.rb
teacup-1.0.1 app/controllers/landscape_only_controller.rb
teacup-1.0.0 app/controllers/landscape_only_controller.rb
teacup-0.3.12 app/controllers/landscape_only_controller.rb
teacup-0.3.11 app/controllers/landscape_only_controller.rb