friendPickerController

friendPickerController

我正在使用Facebook的SDK向用户显示朋友。但是当我调用segue时,我不知道如何更改表格的白色背景:

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

    if ([segue.identifier isEqualToString:@"SegueToFriendPicker"]) {

        FBFriendPickerViewController *friendPickerController = (FBFriendPickerViewController *) segue.destinationViewController;
        friendPickerController.title = @"Pick Friends";
        friendPickerController.doneButton = nil;
        friendPickerController.allowsMultipleSelection = NO;
        friendPickerController.delegate = self;
        [friendPickerController loadData];

    }
}

最佳答案

从FBFriendPickerViewController文档中:

When the FBFriendPickerViewController view loads it creates a UITableView
object where the friends will be displayed. You can access this view through
the tableView property.


这可能起作用:

friendPickerController.tableView.backgroundColor = /*YOUR COLOUR HERE*/;

关于ios - 如何使用segue为Facebook iOS Friend Picker自定义背景和单元格?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20815559/

10-10 09:28