search

Home  >  Q&A  >  body text

objective-c - iOS 16 to UIImage

Convert the data returned by scoopet (stored in hexadecimal numbers) into UIImage

迷茫迷茫2832 days ago731

reply all(2)I'll reply

  • PHPz

    PHPz2017-05-02 09:33:52

    [UIImage imageWithData:[data subdataWithRange:NSMakeRange(8, data.length - 8)]];

    reply
    0
  • 阿神

    阿神2017-05-02 09:33:52

    Convert to NSData and use [UIImage imageWithData:<#(nonnull NSData *)#>];
    There is a lot of information online

    reply
    0
  • Cancelreply