Class: MyViewController

Inherits:
UIViewController
  • Object
show all
Defined in:
app/controllers/my_controller.rb

Instance Method Summary collapse

Instance Method Details

#viewDidLoadObject



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

def viewDidLoad
  super
 
  z.stylesheet = MyStylesheet.new # works absolutely anywhere
 
  z(self.view).style(:white_bg)
 
  self.view.addSubview(z(UILabel).style(:bw_big) do |v|
    v.text = "Testing"
  end)
 
end