Sha256: 4ef4ce881b2a26729f2db1ce732584bdb8e3317258387fe9441383741914d364

Contents?: true

Size: 386 Bytes

Versions: 10

Compression:

Stored size: 386 Bytes

Contents

class LandscapeOnlyController < UIViewController

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

  def shouldAutorotateToInterfaceOrientation(orientation)
    if orientation == UIDeviceOrientationLandscapeLeft or orientation == UIDeviceOrientationLandscapeRight
      true
    else
      false
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
teacup-0.3.10 app/controllers/landscape_only_controller.rb
teacup-0.3.9 app/controllers/landscape_only_controller.rb
teacup-0.3.8 app/controllers/landscape_only_controller.rb
teacup-0.3.7 app/controllers/landscape_only_controller.rb
teacup-0.3.6 app/controllers/landscape_only_controller.rb
teacup-0.3.5 app/controllers/landscape_only_controller.rb
teacup-0.3.4 app/controllers/landscape_only_controller.rb
teacup-0.3.3 app/controllers/landscape_only_controller.rb
teacup-0.3.2 app/controllers/landscape_only_controller.rb
teacup-0.3.1 app/controllers/landscape_only_controller.rb