You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Declaration
CGContextRef UIGraphicsGetCurrentContext(void);
Return Value
The current graphics context.
Discussion
The current graphics context is nil by default. Prior to calling its drawRect: method, view objects push a valid context onto the stack, making it current. If you are not using a UIView object to do your drawing, however, you must push a valid context onto the stack manually using the UIGraphicsPushContext function.
Hi Daniel,
thanks for an awesome library!
I've subclassed
MarkerImage
in order to show images where ever I want on the graph. I think this is the way to do it.Although
let context = UIGraphicsGetCurrentContext()
always returnsnil
. Do you have any suggestions?The text was updated successfully, but these errors were encountered: