Is it possible to get context ( CGContextRef) from an existing one UIImageView?
Details: I have a link for the controller to the xib file. In IB, I added UIImageViewand refer to:
IBOutlet UIImageView *imageView;
Now, in viewDidLoadHow to get context UIImageView( CGContextRef)?
Prior to this, if I use:
CGContextRef context = UIGraphicsGetCurrentContext();
exit:
<Error>: CGContextTranslateCTM: invalid context
are you suggesting?
source
share