FBFriendPickerViewController for iOS 7 does not work as expected in landscape mode

I am working to integrate with Facebook in my iPad app. I am using FBFriendPickerViewController for this. My application works fine on iOS 6 both for landscape and portrait mode, but when I use iOS 7, then the friends selection controller works fine ONLY for portrait. When you try to run it in landscape mode, a white view appears. In the background, I could see a poor representation of the interlocutor, but it is very difficult to see. Does anyone know what should be the reason? The code base I used is below.

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]; 

The same thing that I observed on the example of the facebook application "HelloFacebookSample" :)

+7
facebook ios7 facebook-ios-sdk
source share
1 answer

Try:

  • Get the latest SDK for Facebook , because in the link above, a Facebook representative says that the problem needs to be resolved. The modal frame still takes into account the space for the status bar, so you will need to find a way to deal with it (it does not bother me enough to waste time solving it at the moment).

  • I also deleted the line [[UINavigationBar appearance] setTitleTextAttributes:]; from my application delegate, so maybe try removing the entire navigation bar setting and see what you get.

Good luck.

+1
source share

All Articles