我正在为我的iPad应用程序中的Facebook集成工作.我正在使用FBFriendPickerViewController.我的应用程序在iOS 6上正常用于横向和纵向模式,但是当我使用iOS 7时,朋友选择器控制器仅适用于肖像.当尝试以横向模式启动它时,会弹出白色视图.我可以在背景中看到微弱的朋友选择器视图,但很难看到.有谁知道一定是什么原因?我用过的代码库如下.
if (!_friendPicker) {
self.friendPicker = [[FBFriendPickerViewController alloc] init];
// _friendPicker.delegate = self;
_friendPicker.title = @"Select a friend";
_friendPicker.allowsMultipleSelection = NO; // Share dialog doesn't allow more than one recipient
}
[_friendPicker clearSelection];
[_friendPicker loadData];
_friendPicker.modalPresentationStyle = UIModalPresentationFormSheet;
[_friendPicker presentModallyFromViewController:self
animated:YES
handler:nil];
Run Code Online (Sandbox Code Playgroud)
我在facebook示例应用程序"HelloFacebookSample"上观察到同样的事情:)