簡體   English   中英

登出 ? -解析和Facebook SDK

[英]Logout ? - Parse and 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]; }

這樣做只有一個小問題,如何生成注銷按鈕...。因為根本沒有生成注銷按鈕!

有人在乎為我闡明現實嗎???

謝謝。

萬里。

它是偽代碼,是一個指南,供您填寫空白。 在這種情況下,按鈕本身就是空白,因為用於注銷的相關信息是[PFUser logOut]; 代碼,而不是如何配置應用程序以調用該代碼。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM