【问题标题】:Logout ? - Parse and Facebook SDK登出 ? - 解析和 Facebook SDK
【发布时间】:2013-07-06 04:17:54
【问题描述】:

看例子

https://www.parse.com/tutorials/integrating-facebook-in-ios

我无法确定我如何注销最终用户。

// from the viewcontroller.h file.

// UINavigationBar button touch handler

- (void)logoutButtonTouchHandler:(id)sender;

// And apparently this line ->

(void)logoutButtonTouchHandler:(id)sender { 

// Logout user, this automatically clears the cache [PFUser logOut];

// Return to login view controller.  From the view controller.m file.

[self.navigationController popToRootViewControllerAnimated:YES]; }

这只是一个小问题,注销按钮是如何生成的......因为它根本没有生成!

有人愿意为我照亮现实吗????

谢谢。

英里数。

【问题讨论】:

    标签: ios facebook login logout parse-platform


    【解决方案1】:

    它是伪代码,一个指南,供你填空。在这种情况下,空白是按钮本身,因为与注销相关的信息是 [PFUser logOut]; 代码,而不是您配置应用程序以调用该代码的方式。

    【讨论】:

    • 一切顺利。真的是一团糟!解决方案实际上是调用 [PFuser logout] 但还需要调用按钮操作来引用它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多