The keyboard is hidden after it became FirstResponder

I bring focus to a UITextView after setting the .hidden property to NO. When I set [textView getFirstResponder], the textView gets a small intro cursor, but the keyboard remains hidden. Any idea why? If that helps, the main view is a modal view that represents the UINavigationController.

EDIT: Here the method is called, which is called:

- (void)show_comment_elements {

    toolbar.hidden = YES;
    main_table.hidden = YES;
    add_comment_table.hidden = NO;
    comment_text.hidden = NO;

    [comment_text becomeFirstResponder];

}

Here is a screenshot:

frustration

+3
source share
2 answers

I assume that you have confirmed that your method is called after the view is placed on the screen.

From the documents ...

- , (canResignFirstResponder) .

, -, . , . UIWindow, ; nil, .

:

  • , , , ?

  • , , , . IB, , .

  • , - if (comment_text.isEditable) .

  • [comment_text setNeedsDisplay] , .

, - (, ).

+4

nextResponder - , UIWindow.

0

All Articles