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-1.3.4 samples/AutoLayout/app/root_controller.rb
teacup-1.3.3 samples/AutoLayout/app/root_controller.rb
teacup-1.3.2 samples/AutoLayout/app/root_controller.rb
teacup-1.3.1 samples/AutoLayout/app/root_controller.rb
teacup-1.3.0 samples/AutoLayout/app/root_controller.rb
teacup-1.2.9 samples/AutoLayout/app/root_controller.rb