Keyboard issue with iOS SDK for iOS

I'm trying to publish a Facebook post for users to post a stream through the feed dialog in the iPad app.

[_facebook dialog:@"feed" andParams:params andDelegate:self]; 

When I press the area for entering a message, the keyboard appears, and when I click the "Say it ..." button, the cursor appears. But when I try to enter, the input does not go into the text field, the cursor becomes invisible, and the text field seems to have lost focus. If I click more, I can finally write.

Strange it happens only in the portrait, but not in the landscape. After that, everything is fine with the message, only sometimes the user message appears. Any ideas?

+4
source share
2 answers

I had the same problem using version 3.5.2 of the Facebook SDK and iOS 4.3.x and 5.x.

I used the method:

 + (void)presentFeedDialogModallyWithSession:(FBSession *)session parameters:(NSDictionary *)parameters handler:(FBWebDialogHandler)handler; 

However, now I use:

 + (void)presentDialogModallyWithSession:(FBSession *)session dialog:(NSString *)dialog parameters:(NSDictionary *)parameters handler:(FBWebDialogHandler)handler delegate:(id<FBWebDialogsDelegate>)delegate; 

And we implement the delegate method as follows:

 - (void)webDialogsWillPresentDialog:(NSString *)dialog parameters:(NSMutableDictionary *)parameters session:(FBSession *)session { [[[UIApplication sharedApplication].windows objectAtIndex:0] makeKeyAndVisible]; } 

This completely solved my problem.

+3
source

I reproduced this on iOS 4.2.1, running on a real iPhone 3G, auth checks all the work, but the UIWebView requesting the user / pass will not pop up on the keyboard before entering anything. Earlier versions of iOS run the same fine (3.x) device, and the simulator also works fine in 4.3.x. I hope this helps resolve the issue.

-

This fixed the problem for our application: Facebook iOS SDK Text Input Dialog Box

0
source

Source: https://habr.com/ru/post/1369030/


All Articles