FBGraphObjectPickerDelegate
最新版本的 SDK 已不再提供此課程。
有此級別的更新版本。前往查看 最新版本。

The FBGraphObjectPickerDelegate protocol defines the methods used to receive event notifications and allow for deeper control of the FBGraphObjectPickerViewController view.

Extends Protocol:FBViewControllerDelegate
Declared in:FBGraphObjectPicker.h
執行個體方法
graphObjectPickerViewController:handleError:

Called if there is a communication error.

參數說明
graphObjectPicker

The graph object picker view controller that encountered the error.

error

An error object containing details of the error.

- (void)
graphObjectPickerViewController: (FBGraphObjectPickerViewController *)graphObjectPicker
handleError: (NSError *)error;
graphObjectPickerViewController:shouldIncludeGraphObject:

Asks the delegate whether to include a graph object in the list.

參數說明
graphObjectPicker

The graph object picker view controller that is requesting this information.

object

An object

- (BOOL)
graphObjectPickerViewController: (FBGraphObjectPickerViewController *)graphObjectPicker
shouldIncludeGraphObject: (id<FBGraphObject>)object;
Discussion:

This can be used to implement a search bar that filters the graph object list.

graphObjectPickerViewControllerDataDidChange:

Tells the delegate that data has been loaded.

參數說明
graphObjectPicker

The graph object picker view controller whose data changed.

- (void) graphObjectPickerViewControllerDataDidChange:(FBGraphObjectPickerViewController *)graphObjectPicker;
Discussion:

The FBGraphObjectPickerViewController object's tableView property is automatically reloaded when this happens. However, if another table view, for example the UISearchBar is showing data, then it may also need to be reloaded.

graphObjectPickerViewControllerSelectionDidChange:

Tells the delegate that the selection has changed.

參數說明
graphObjectPicker

The graph object picker view controller whose selection changed.

- (void) graphObjectPickerViewControllerSelectionDidChange:(FBGraphObjectPickerViewController *)graphObjectPicker;