Class: UIFont
Instance Method Summary collapse
Instance Method Details
#uifont(font_size = nil) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/ios/sugarcube-ui/uifont.rb', line 2 def uifont(font_size=nil) if font_size.nil? self else font_size = font_size.uifontsize if font_size.respond_to?(:uifontsize) self.fontWithSize(font_size) end end |