Method: PaddedLabel#drawTextInRect
- Defined in:
- lib/project/views/padded_label.rb
#drawTextInRect(rect) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/project/views/padded_label.rb', line 2 def drawTextInRect(rect) insets = UIEdgeInsets.new(0, padding, 0, padding) padded_rect = UIEdgeInsetsInsetRect(rect, insets) super(padded_rect) end |