search

Home  >  Q&A  >  body text

objective-c - How to display the data image received by iOS through GCDAsyncSocket

iOS receives data through GCDAsyncSocket. How to display the image?
A picture receives a lot of data. I spliced ​​the data but used the imageWithData method to not display the picture.
image is nil
UIImage *image = [ UIImage imageWithData:self.downloadImageData];

PHPzPHPz2819 days ago682

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-02 09:34:08

    The method is correct, but there is something wrong with the splicing method

    reply
    0
  • Cancelreply