I am using UIGraphicsPushContext to push a context inside drawRect like so:
- (void)drawRect:(CGRect)rect {
// Create Bitmap Graphics Context
UIContextRef ctxt = //blah blah;
// Push the custom context in the graphics stack
UIGraphicsPushContext(ctxt);
// Draw Stuff
// Get Image from custom context
}
My problem is that the image is not shown on screen(on the view) but I can confirm that I have successfully drawn on the context since the image retrieved from the context shows an image similar to what I intended to draw.
What I wanted to achieve is replace my call of UIGraphicsGetCurrentContext() (which works and shows the image) and use (push) a custom context that I can utilize.
Am I missing something here? Thanks!