Ame*_*eer 7 facebook facebook-ios-sdk ios7
我正在为我的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];
我在facebook示例应用程序"HelloFacebookSample"上观察到同样的事情:)
小智 1
尝试:
获取最新的 Facebook SDK,因为在上面的链接中,Facebook 代表表示问题应该得到解决。模态框架仍然考虑状态栏的空间,因此您必须找到一种方法来处理它(此时不会打扰我花时间解决它)。
我还[[UINavigationBar appearance] setTitleTextAttributes:];从我的应用程序委托中删除了一行,因此也许可以尝试删除所有导航栏自定义并看看您会得到什么。
祝你好运。
| 归档时间: | 
 | 
| 查看次数: | 785 次 | 
| 最近记录: |