自定义在ios应用程序中登录到Facebook [英] Custom Log in to facebook in ios application

查看:105
本文介绍了自定义在ios应用程序中登录到Facebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用最新的facebook sdk在我的iOS应用程序中集成照片共享。目前正在使用iOS 5.0。我可以登录并分享照片。

I am using the latest facebook sdk to integrate photo sharing in my iOS app. Currently working with iOS 5.0. I am able to login and share photos.

但是要登录,我必须使用 FBLoginView 。我想要的是从我自己的UIButton调用方法。现在,要找到与 FBLoginView 关联的 UIButton ,我使用如何定制FBLoginVIew?

But for login, i have to use the FBLoginView. What I want to so is to call the methods from my own UIButton. Now, to find the UIButton associated with the FBLoginView i use How to customize FBLoginVIew?

我还可以找到与按钮关联的所有选择器动作 actionsForTarget:forControlEvent: http://developer.apple.com/library/ios/documentation/uikit/reference/UIControl_Class/Reference/Reference.html# // apple_ref / doc / uid / TP40006779-RH2-SW6

I can also find all the selectors associated with the button using actions actionsForTarget:forControlEvent: http://developer.apple.com/library/ios/documentation/uikit/reference/UIControl_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006779-RH2-SW6

但是,为了调用此方法,我需要知道哪个对象是发送到的登录消息?我如何找到?

But for calling this method I need to know which object is the login message sent to? How can I find that?

推荐答案

我使用 sendActionsForControlEvents:我刚发送这个消息给UIButton为$ code> UIControlEventTouchUpInside ,它调用相应的方法。 (但它不按我想要的工作。)

I solved this using sendActionsForControlEvents: I just sent this message to the UIButton for UIControlEventTouchUpInside and it called the corresponding method(s). (but it is not working as I wanted.)

这篇关于自定义在ios应用程序中登录到Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆