[英]iOS, share webView content (long text or .pdf) via twitter and Facebook
Hello fellow developers, 各位开发人员大家好,
I have some html loaded into a webview. 我有一些HTML加载到webview中。 I need to share its contents with twitter and Facebook, hence need to understand the following: 我需要与Twitter和Facebook分享其内容,因此需要了解以下内容:
I've spent some time googling both of those and at the moment the only idea is using dropbox, which kinda solves the case but provides not the best user experience since one would need to log-in to dropbox to enable the share functionality. 我花了一些时间在这两个位置上进行了搜索,目前唯一的想法是使用保管箱,虽然可以解决问题,但不能提供最佳的用户体验,因为需要登录保管箱才能启用共享功能。
Looking forward to hear your thoughts. 期待听到您的想法。
--Dan - 担
I recommend setting up a basic PHP service on your website (if you have one) to where you can upload the .PDF and then feed the returning link to an iOS API such as bit.ly's. 我建议在您的网站(如果有)上设置基本的PHP服务,您可以在其中上传.PDF,然后将返回的链接提供给iOS API(例如bit.ly's)。
Their API will return a shortened link to the .PDF on your website and you can also track click counts with bit.ly 他们的API将返回指向您网站上.PDF的缩短链接,您还可以使用bit.ly跟踪点击计数
http://github.com/bitly/bitly_ios_sdk http://github.com/bitly/bitly_ios_sdk
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.