Commit 7aaa11b0 authored by's avatar

img share png

parent a1d4dd9d
......@@ -132,12 +132,13 @@
NSString *imgBase64 = [data objectForKey:@"imgBase64"];
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:imgBase64 options:NSDataBase64DecodingIgnoreUnknownCharacters];
UIImage *image = [UIImage imageWithData:imageData];
UIImage *png = UIImagePNGRepresentation(image);
UMSocialMessageObject *messageObject = [UMSocialMessageObject messageObject];
UMShareImageObject *shareObject = [[UMShareImageObject alloc] init];
[shareObject setShareImage:image];
[shareObject setShareImage:png];
messageObject.shareObject = shareObject;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment