Core Graphics is Apple's framework for low-level drawing operations on Mac OS X and iOS.
I'm creating a color picker for iOS. I would like to enable the user to select the brightness (luminance) and …
ios ios5 graphics core-graphics core-imageIn the code below, CTFramesetterSuggestFrameSizeWithConstraints sometimes returns a CGSize with a height that is not big enough to contain all …
iphone xcode core-graphics core-textSo far I have a filled in circle and that's about it. I'm trying to make a pie chart that …
ios swift core-graphicsI am trying to animate the drawing of a UIBeizerPath (in my example a triangle) in a UIView subclass. However, …
uiview core-animation core-graphics cakeyframeanimationThis should be simple, but I'm having trouble rotating a UIImageView a full 360 degrees, repeated forever. [UIView animateWithDuration:0.5 delay:0 options:…
objective-c ios core-graphics transform cgaffinetransformI have a UIView with several instances of a subclassed CAShapeLayer added as sublayers to its layer property. I am …
ios core-graphics instrumentsI have subclassed UIView and added a drawRect method to it. Then I define a view using this custom class …
ios core-graphics drawrect z-orderI have a CAKeyframeAnimation animation that I would like to repeat forever using repeatCount = HUGE_VALF. The animation's duration is 2 …
iphone ios core-animation core-graphicsHow can I rotate an image drawn by CGContextDrawImage() at its center? In drawRect: CGContextSaveGState(c); rect = CGRectOffset(rect, -rect.…
ios core-graphics cgcontext cgaffinetransform cgcontextdrawimageCGFloat* colors = CGColorGetComponents(hsbaColor.CGColor); Does this return a float, or an array of floats? It looks like the asterisk …
iphone cocoa-touch core-graphics uicolor cgcolor