gpt4 book ai didi

ios - 如何使用 segue 为 Facebook iOS Friend Picker 自定义背景和单元格?

转载 作者:行者123 更新时间:2023-11-28 22:19:18 26 4
gpt4 key购买 nike

我正在使用 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com