How to share image to Google Classroom in iOS?

﹥>﹥吖頭↗ 提交于 2020-06-17 09:36:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!