Facebook Connect iPhone StreamDialog 委托dialogDidSucceed
我使用 FBStreamDialog 让用户在他们的新闻源上发布内容。
[fbStreamDialog 显示];
弹出对话框视图后,用户可以按取消或提交该消息。
现在...我的问题是两个按钮都关闭对话框视图并调用委托方法dialogDidSucceed。
如何查明按下了哪个按钮? 这对我来说非常重要,任何有用的建议都会非常好!
谢谢,约翰
I use FBStreamDialog to let users publish on their news feed.
[fbStreamDialog show];
makes the dialog view popup, the user can press cancel or submit that message.
Now...my problem is that both buttons close the dialog view and call the delegate method dialogDidSucceed.
How do I find out which button was pressed?
Its very important for me to know, any useful advice would be reaally really nice!
Thanks, John
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
好吧……不想放弃。以防万一其他人遇到同样的问题..
如果您不介意对 fbconnect 原始代码进行轻微修改 - 打开 FBDialog.m 并将以下行添加到 -(void)webViewDidFinishLoad...
这将调用dialogDidCancel委托方法而不是dialogDidSucceed。
干杯。
ok... didnt want to give up. just in case somebody else gets the same problem..
if you do not mind making a slight modification to the fbconnect original code - open FBDialog.m and add the following line to -(void)webViewDidFinishLoad...
this will call the dialogDidCancel delegate method instead the dialogDidSucceed.
cheers.
应该有按钮索引,以便您可以识别按下了哪个按钮。
there should be button index so that you can recognize which button was pressed.
我询问了 facebook connect 开发团队并得到了以下答案:
I asked the facebook connect developer team and got the following answer:
同样的问题,这对我有用。
if (![[url AbsoluteString] isEqualToString:@"fbconnect://success#="])
{
// 你的消息
}
}
Same problem, this worked for me.
if (![[url absoluteString] isEqualToString:@"fbconnect://success#="])
{
// your msg
}
}