Sha256: cca67552c84a3bae1137730fbdabd0e72e741a86353a06bd7408734c2c8d85e2
Contents?: true
Size: 448 Bytes
Versions: 24
Compression:
Stored size: 448 Bytes
Contents
class RectView < GestureView def drawRect(rect) super(rect) context = UIGraphicsGetCurrentContext() CGContextSetAllowsAntialiasing(context, true); CGContextSetShouldAntialias(context, true); CGContextSetFillColorWithColor(context, UIColor.redColor.CGColor) CGContextSetLineWidth(context, 10.0) CGContextAddRect(context, [[0,0], [self.frame.size.width,self.frame.size.height]]) CGContextFillPath(context) end end
Version data entries
24 entries across 24 versions & 1 rubygems