FBFriendPickerViewController
中有“doneButton”和“cancelButton”,默认标题为“完成”和“取消”。我想自定义标题:
FBFriendPickerViewController *friendPickerController = [[FBFriendPickerViewController alloc] init];
friendPickerController.title = @"invite your friend";
friendPickerController.doneButton.title = @"invite";
我认为它应该有效,但事实并非如此。 doneButton的标题仍然是“完成”。
我该怎么设置它?谢谢!
答案 0 :(得分:2)
这是您更改FBFriendPickerViewController
:
friendPickerController.cancelButton = [[UIBarButtonItem alloc] initWithTitle:@"Skip it!" style:UIBarButtonItemStyleBordered target:self action:nil];
friendPickerController.doneButton = [[UIBarButtonItem alloc] initWithTitle:@"Invite!" style:UIBarButtonItemStyleDone target:self action:nil];