Top "Drawrect" questions

Method in UIView/NSView class.

Drawing colored text in UIView's -drawRect: method

I am trying to draw colored text in my UIView subclass. Right now I am using the Single View app …

ios uikit drawrect uicolor nsattributedstring
Animation for drawRect drawings

A part of my app is a statistics-function. I draw in a UIView a path and fill it with a …

ios animation calayer drawrect
UIBezierPath draw circle with different strokes

Basically I need to have a circle with stroke in different color, all equal in size. For example, 1/2 is blue …

ios drawrect uibezierpath
Draw text along circular path in Swift for iOS

I am looking for some up to date help/hints on how to draw simple single line strings around the …

ios swift swift2 drawrect swift3
Drawing a very thin line with CGContextAddLineToPoint and CGContextSetLineWidth

I want to draw a very thin hairline width of a line in my UIView's drawRect method. The line I …

ios ios5 core-graphics ios6 drawrect
iOS invert mask in drawRect

With the code below, I am successfully masking part of my drawing, but it's the inverse of what I want …

ios uiview core-graphics drawrect masking
iPhone: why isn't drawRect getting called?

Okay, I guess I'm missing something important, and I can't seem to find the answer. I'm posting all the code, …

iphone quartz-graphics drawrect
Adding a drop shadow to NSString text in a drawRect: method without using UILabel

I'd like to add a drop shadow to text drawn using the iOS supplied NSString (UIStringDrawing) category method: - (CGSize)…

ios uiview nsstring drawrect dropshadow
UIView drawRect drawing lines of wrong width

I'm trying to add a little red line on the bottom of my UIView. I want the line to be …

iphone ios uiview uikit drawrect
subclassed UITableViewCell - backgroundView covers up anything I do in drawRect

I'm trying to make a subclassed UITableViewCell where I draw an image in the upper right corner. I have it …

iphone uitableview drawrect