Class: B

Inherits:
Z
  • Object
show all
Defined in:
app/controllers/b.rb

Constant Summary

Constants included from MotionAwesome

MotionAwesome::VERSION

Instance Attribute Summary

Attributes inherited from Z

#comp

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

#viewDidLoadObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'app/controllers/b.rb', line 2

def viewDidLoad
  @comp = label( :volume_up, text:"Simply Awesome!" ) do |label|
    label.color           = UIColor.redColor
    label.backgroundColor = UIColor.clearColor
    label.font            = UIFont.fontWithName( 'AmericanTypewriter', size:30 )
    label.textAlignment   = NSTextAlignmentCenter
    label.frame           = CGRectMake( 0, 0, 300, 50 )
    label.center          = center
    self.view.addSubview(label)
  end
  super
end