简体   繁体   中英

Logout ? - Parse and Facebook SDK

Looking at the example at

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

I can't make heads or tails of how I logout an enduser.

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

There's just one little problem with this, how is the logout button is being generated....because its not being generated at all!

Anyone care to illuminate reality for me ????

Thanks.

Miles.

It's pseudo code, a guide, for you to fill in the blanks. In this case the blank is the button itself because the pertinent information for logging out is the [PFUser logOut]; code, not how you configure your app to call that code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM