是否可以在PhoneGap应用程序中使用ShareThis? [英] Is is possible to use ShareThis in a PhoneGap app?
问题描述
我已经检查了github上的插件存储库,并且似乎没有为ShareThis编写的插件.我认为这意味着我将必须安装用Objective-C编写的ShareThis的移动版本.有没有办法使这项工作可行?
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?
推荐答案
您是正确的,因为您需要编写一个插件来在ShareThis iOS API和PhoneGap之间建立接口.
You are correct in that you would need to write a plugin to interface between the ShareThis iOS API and PhoneGap.
看起来像一个非常简单的API ...不应该太难了.
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
此外,只要查看GitHub存储库中的一些较简单的插件,您就应该能够为此使用一个插件.
Also, just looking at some of the simpler plugins in the GitHub repo you should be able to get one working for this.
这篇关于是否可以在PhoneGap应用程序中使用ShareThis?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!