UIImageView
works with UIImage
, which is a UIKit
's wrapper for CGImage
. In any case you should have either a CGImage
or UIImage
. What can you do? Draw an image dynamically using CoreGraphics and/or UIKit's drawing methods (take a look at Quartz2D Programming Guide). Or if you can have a raw byte data of your image you can directly create an UIImage
instance:
NSData *imgData = [[NSData alloc] initWithBytes:(const void*)myByteArray length:sizeof(myByteArray)];
UIImage *img = [[UIImage alloc] initWithData:imgData];
stel dan gewoon de UIImageView
's image
property in:
self.myImageView.image = img;