Sunday, September 29, 2013

How to display a chart in a UIView?

This picture is transmitted over the network, I have now decoded and read in memory, and now how to display it in a view? ? ? ? Seeking heroes wing ~ a code harder to good
Reply:
 
UIImage * drawimage = [UIImage imageWithCGImage: imageref] ;/ / *** __ NSAutoreleaseNoPool (): Object 0x1e5950 of class UIImage autoreleased with no pool in place - just leaking

/ / Why every time you run into the following sentence at all output will be displayed:
/ *
Thu Aug 30 18:41:14 homewell test [1377] : CGContextSaveGState: invalid context 0x0
Thu Aug 30 18:41:14 homewell test [1377] : CGContextSetBlendMode: invalid context 0x0
Thu Aug 30 18:41:14 homewell test [1377] : CGContextSetAlpha: invalid context 0x0
Thu Aug 30 18:41:14 homewell test [1377] : CGContextTranslateCTM: invalid context 0x0
Thu Aug 30 18:41:14 homewell test [1377] : CGContextScaleCTM: invalid context 0x0
Thu Aug 30 18:41:14 homewell test [1377] : CGContextDrawImage: invalid context 0x0
Thu Aug 30 18:41:14 homewell test [1377] : CGContextRestoreGState: invalid context 0x0
* /
[Drawimage drawInRect: imagerect];

CGImageRelease (imageref);

Reply:
Initialized with CGImage NSData
Reply:
NSData into UIImage, and then use the UIImageView display
Reply:
I was able to stream directly RGB convert NSData UIImage do?
Reply:
It is said not own tune drawInRect, with setneedsdisplay look
Reply:
NSData * data = / / / read memory
the pictureUIImage * image = [UIImage imageWithData: data];

No comments:

Post a Comment