Class: D
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 14 15 16 17 18 19 20 |
# File 'app/controllers/d.rb', line 2 def viewDidLoad @comp = ( :legal, size: 40, text:%q{Hit me!} ) do || .titleLabel.textColor = 0xFB3223.uicolor .titleLabel.font = UIFont.fontWithName( 'GillSans', size:30 ) .setBackgroundImage( UIImage.imageNamed( 'button-bg.png'), forState: UIControlStateNormal ) .layer.cornerRadius = 10 .layer.masksToBounds = true .frame = CGRectMake( 0, 0, 180, 60 ) .center = center .addTarget( self, action: "callback:", forControlEvents: UIControlEventTouchUpInside ) self.view.addSubview( ) end super end |