问题
I've checked the plugin repository on github, and there does not appear to be a plugin already written for ShareThis. I think this means I would have to install the mobile version of ShareThis written in Objective-C. Is there a way to make that work?
回答1:
You are correct in that you would need to write a plugin to interface between the ShareThis iOS API and PhoneGap.
Looks like a pretty straight forward API... shouldn't bee too hard.
http://wiki.phonegap.com/w/page/36753496/How%20to%20Create%20a%20PhoneGap%20Plugin%20for%20iOS
Also, just looking at some of the simpler plugins in the GitHub repo you should be able to get one working for this.
来源:https://stackoverflow.com/questions/9755099/is-is-possible-to-use-sharethis-in-a-phonegap-app