Class: UILabel

Inherits:
Object
  • Object
show all
Defined in:
lib/cha_work/sugar/uilabel.rb

Instance Method Summary collapse

Instance Method Details

#color(value) ⇒ Object



11
12
13
14
# File 'lib/cha_work/sugar/uilabel.rb', line 11

def color(value)
	self.textColor = value.class == UIColor ? value : value.uicolor
	self
end

#offObject



7
8
9
# File 'lib/cha_work/sugar/uilabel.rb', line 7

def off
	self.resignFirstResponder
end

#onObject



3
4
5
# File 'lib/cha_work/sugar/uilabel.rb', line 3

def on
	self.becomeFirstResponder
end

#size(value) ⇒ Object



16
17
18
19
# File 'lib/cha_work/sugar/uilabel.rb', line 16

def size(value)
	self.font = UIFont.systemFontOfSize(value)
	self
end