Class: C
Constant Summary
Constants included from MotionAwesome
Instance Attribute Summary
Attributes inherited from Z
Instance Method Summary collapse
Methods inherited from Z
#didRotateFromInterfaceOrientation, #initialize, #viewWillAppear
Methods included from MotionAwesome
attributed_text, button, button_types, font, hex_for_icon, label, map_types, parse_options, plist, xform_icon
Constructor Details
This class inherits a constructor from Z
Instance Method Details
#viewDidLoad ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/c.rb', line 2 def viewDidLoad @comp=label(:rocket, text:"Rocket Hot!", color:0xB0FB03.uicolor) do |label| label.color = 0x539FFB.uicolor label.backgroundColor = UIColor.clearColor label.font = UIFont.fontWithName( 'copperplate', size:40 ) label.textAlignment = NSTextAlignmentCenter label.frame = CGRectMake( 0, 0, 300, 50 ) label.center = center self.view.addSubview(label) end super end |