2013-07-08 121 views
0

的例子看注销? - 解析和Facebook SDK

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]; } 

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

任何关心照亮现实对我来说?

谢谢。

英里数。

回答

4

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

+0

明白了一切。它真的是一团糟!该解决方案实际上是调用[PFuser注销],但也需要调用按钮操作来引用它。 – MagicMiles