Class: D

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

Instance Attribute Summary

Attributes inherited from Z

#comp

Instance Method Summary collapse

Methods inherited from Z

#didRotateFromInterfaceOrientation, #initialize, #viewWillAppear

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
14
15
16
17
18
# File 'app/controllers/d.rb', line 2

def viewDidLoad       
  @comp = button( :legal, size: 40, text:%q{Hit me!} ) do |button|
    button.titleLabel.textColor = 0xFB3223.uicolor
    button.titleLabel.font      = UIFont.fontWithName( 'GillSans', size:30 )
    button.setBackgroundImage( UIImage.imageNamed( 'button-bg.png'), forState: UIControlStateNormal )      
    button.layer.cornerRadius  = 10
    button.layer.masksToBounds = true
          
    button.frame             = CGRectMake( 0, 0, 180, 60 )
    button.center            = center
    button.addTarget( self,
                      action: "callback:",
                      forControlEvents: UIControlEventTouchUpInside ) 
    self.view.addSubview( button )                  
  end   
  super
end