Sha256: e24dfeb1eae051dde2c57127bb926658563d98ab39298b6d70874aa94f97bc6e

Contents?: true

Size: 658 Bytes

Versions: 1

Compression:

Stored size: 658 Bytes

Contents

class CustomViewController2 < UIViewController
  TAG_IDLABEL     = 1
  TAG_DESCRIPTION = 2
  TAG_CUSTOMTEXT  = 3

  def awakeFromNib
    # make sure our views are loaded
    self.view
  end

  def viewDidLoad
    puts "#{self.to_s}: CustomViewController2::viewDidLoad"
    self.title = "CustomVC2"
    
    @idlabel = retrieve_subview_with_tag(self, TAG_IDLABEL)
    @idlabel.text = self.to_s

    @description = retrieve_subview_with_tag(self, TAG_DESCRIPTION)
    @customtext = retrieve_subview_with_tag(self, TAG_CUSTOMTEXT)
  end

  def set_parent_id(id)
    @description.text = "Custom text from #{id}:"
  end

  def customtext
    @customtext
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubymotionr-0.0.1 spec/multiple-rubymotion-apps/StoryboardCustoms/app/custom_view_controller2.rb