FBUserSettingsViewController隐藏导航栏

时间:2012-09-28 22:04:51

标签: facebook ios6 facebook-ios-sdk

当我以模态方式呈现FBUserSettingsViewController时,它有一个带有取消和完成栏按钮的导航栏。

如何隐藏它?

FBUserSettingsViewController *settings = PF_FBUserSettingsViewController.new;
settings.delegate = self;
[self presentViewController:settings animated:YES completion:nil];

1 个答案:

答案 0 :(得分:1)

您可以通过将 FBUserSettingsViewController doneButton cancelButton 设置为 nil 来隐藏工具栏:< / p>

self.settingsViewController.doneButton = nil;
self.settingsViewController.cancelButton = nil;

这已在Facebook SDK 3.2中得到验证。