Top "Drawrect" questions

Method in UIView/NSView class.

UIView with shadow, rounded corners and custom drawRect

I have to create a custom UIView that will have round corners, a border, a shadow and its drawRect() method …

ios objective-c uiview swift drawrect
Animate drawing of a circle

I'm looking for a way to animate the drawing of a circle. I have been able to create the circle, …

swift geometry uiviewanimation progress drawrect
Swift 3: Drawing a rectangle

I'm 3 days new to swift, and I'm trying to figure out how to draw a rectangle. I'm too new to …

swift graphics draw drawrect swift3
How to draw an UIImage or directly in -drawRect:?

I have an UIImage which I want to draw on a UIView. But instead of creating an UIImageView and adding …

iphone cocoa-touch uiimage drawrect
iOS draw filled Circles

Not a graphics programmer here, so I'm trying to stumble through this. I'm trying to draw 9 filled circles, each a …

ios drawrect cgcontext
Swift / UIView / drawrect - how to get drawrect to update when required

I'm new to learning Swift, and am trying to get an incredibly simple app to run. All I'm trying to …

swift uiview drawrect updating
How to fill a path with gradient in drawRect:?

filling a path with a solid color is easy enough: CGPoint aPoint; for (id pointValue in points) { aPoint = [pointValue CGPointValue]; …

iphone core-graphics quartz-graphics drawrect
How to draw a rectangle?

I want to draw a filled rectangle in my viewContoller's view. I wrote the code below in viewDidLoad. But there …

iphone objective-c drawrect
How to Call drawRect programmatically in objective c

How to Call drawRect programmatically in objective c ? I want to call drawrect method of a view in my UItabbarcontroller. …

iphone objective-c drawrect
Most efficient way to draw part of an image in iOS

Given an UIImage and a CGRect, what is the most efficient way (in memory and time) to draw the part …

iphone ios uiimage quartz-2d drawrect