Sha256: 511b2ceed9933480507ac8e5a5ace810d4ff08839be4f2c3188154f45747df4b
Contents?: true
Size: 518 Bytes
Versions: 8
Compression:
Stored size: 518 Bytes
Contents
class DMButton < UIButton include MotionPrime::KeyValueStore attr_accessor :paddingLeft, :paddingTop, :padding def setTitle(value) setTitle value, forState: UIControlStateNormal end def drawPadding(rect) padding_left = self.paddingLeft || self.padding || 5 padding_top = self.paddingTop || self.padding || 0 self.setTitleEdgeInsets UIEdgeInsetsMake( padding_top, padding_left, padding_top, padding_left ) end def drawRect(rect) drawPadding(rect) super end end
Version data entries
8 entries across 8 versions & 1 rubygems