问题
Is there an API to add a google classroom share button in iOS? I only see a Javascript example on the guides, and the iOS API doesn't say anything about a share button.
Thanks!
回答1:
There's no iOS SDK, but you can use URLs of the form https://classroom.google.com/share?url=https://foo.com/ to share content. (Using the system browser might work better than a WebView because the user is more likely to be logged in there.)
来源:https://stackoverflow.com/questions/32210870/google-classroom-ios-share-button