Sha256: c5b583e925c5507da03809a837955069ba6d10a1d88238351898152bca58b412

Contents?: true

Size: 347 Bytes

Versions: 26

Compression:

Stored size: 347 Bytes

Contents

class RootController < UIViewController
  stylesheet :root

  layout :root do
    @label = subview(UILabel, :label)
    @button = subview(UIButton.buttonWithType(UIButtonTypeRoundedRect), :button)
    @switch = subview(UISwitch, :switch)
  end  

  def viewDidLoad
  	super
  	# Title for this view
  	self.title = "Autolayout Example"
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
teacup-2.1.13 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.12 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.11 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.10 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.9 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.8 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.7 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.6 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.5 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.4 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.3 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.2 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.1 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.1.0 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.0.6 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.0.5 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.0.4 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.0.3 samples/ios/AutoLayout/app/root_controller.rb
teacup-2.0.2 samples/AutoLayout/app/root_controller.rb
teacup-2.0.0 samples/AutoLayout/app/root_controller.rb