问题
I want share an image within my application to Google Classroom.
NSData* data = UIImagePNGRepresentation(_contentImageView.image);
NSString* base64Str = [data base64EncodedStringWithOptions:0];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://classroom.google.com/share?img=%@",base64Str]] options:@{@"img": base64Str} completionHandler:nil];
Tried with above code to share image directly to their URL by encoding image data but no result. Couldn't find proper documentation.So how to share image to Google Classroom?
来源:https://stackoverflow.com/questions/61884460/how-to-share-image-to-google-classroom-in-ios