Google Plus 一键连接 iPhone 应用程序

发布于 2024-11-24 13:16:02 字数 69 浏览 3 评论 0 原文

我想将 Google +1 按钮添加到以链接作为参数的 iOS 应用程序。

这可能吗?

谢谢

I'd like to add a Google +1 button to an iOS app that takes a link as a parameter.

Is this possible?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

佞臣 2024-12-01 13:16:02

最近推出的 Google+ API:http://developers.google.com/+/overview 具有目标C 支持:http://developers.google.com/+/downloads

The recently launched Google+ API: http://developers.google.com/+/overview has Objective C support: http://developers.google.com/+/downloads

漆黑的白昼 2024-12-01 13:16:02

我会研究 iOS 中的 Facebook Like 按钮,因为现在在 iOS 应用程序中使用 +1 和 Like 按钮的解决方案可能是相似的,因为正在做同样的事情(在 iOS 应用程序中使用以网站为中心的工具) .)

下面的链接描述了一种使用webview来实现Like按钮的方法,我认为将其适配为+1按钮不会太难。需要注意的是,登录本身(FB 版本)需要克服一些可用性问题,尽管我承认我不知道 Google 如何处理点击 +1 时未登录的用户。

http://angelolloqui.blogspot.com/2010/11 /facebook-like-button-on-ios.html

I would research Facebook Like button in iOS, as right now the solutions for using the +1 and the Like buttons inside of an iOS app are probably similar since the same thing is being done (using a website-centric tool inside of an iOS app.)

The following link describes a way to use a webview to implement the Like button, and I don't think it would be too hard to adapt it for the +1 button. Caveat is that there are some usability issues to overcome with the Login itself (with the FB version), although admittedly I don't know exactly how Google handles a user who isn't logged in when they click the +1.

http://angelolloqui.blogspot.com/2010/11/facebook-like-button-on-ios.html

蓝海似她心 2024-12-01 13:16:02

显示 Google+1 按钮的最简单方法是,首先下载 google+ ios sdk,然后将其包含在您的 xcode 项目中。完成上一步后,现在将按钮拖到 xib 文件中。之后尝试将按钮的自定义类更改为 GPPSignInButton(您可以从右侧属性窗口更改按钮的自定义类)。然后在控制器的 .h 文件中创建一个 GPPSignInButton 类型的 IBOutlet,然后从文件所有者将该 IBOutlet 分配给在 xib 上拖动的按钮。

现在,每当您运行该应用程序时,您都会在 xib 上看到 google+1 按钮,通过此按钮我们可以执行登录活动。

细节
https://developers.google.com/+/mobile/ios/sign-in

The easiest way of showing the Google+1 button is, first download the google+ ios sdk and then include it in your xcode project. After the previous step now drag a button on to xib file. After that try to change the custom class of the button to GPPSignInButton (You can change the custom class of the button from the right hand side property window). Then in the .h file of controller create an IBOutlet of type GPPSignInButton and then from the file's owner assign that IBOutlet to the button dragged on xib.

Now whenever you will run the application you will se google+1 button on ur xib and through this button we can perform signIn activity.

Details
https://developers.google.com/+/mobile/ios/sign-in

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文