2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'app/controllers/my_controller.rb', line 2
def viewDidLoad
super
z.stylesheet = MyStylesheet.new
z(self.view, :white_bg)
self.view.addSubview(z(UILabel, :bw_big) do |v|
v.text = ":bw_big"
v.frame = [[20, 40], [280, 50]]
end)
self.view.addSubview(z(UILabel, [:bw_big, :blue_bg]) do |v|
v.text = ":bw_big & :blue_bg"
v.frame = [[20, 100], [280, 50]]
end)
self.view.addSubview(UILabel.new.style([:bw_big, :blue_bg]) do |v|
v.text = "alt sytax 1"
v.frame = [[20, 160], [280, 50]]
end)
self.view.addSubview(UILabel.style([:bw_big, :blue_bg]) do |v|
v.text = "alt sytax 2"
v.frame = [[20, 220], [280, 50]]
end)
end
|