Keyboard not Appearing when Tapping Text Box in UIWebView

后端 未结 5 1875
南方客
南方客 2020-11-30 15:29

I have a UITabViewController set up with two tabs, the second containing a web browser. The keyboard will not appear in my App unless I first display and dismis

5条回答
  •  粉色の甜心
    2020-11-30 15:59

    Not a lot to go on but if you have textfield visually displayed but it will not evoke the keyboard when tapped then most likely you have an issue with focus i.e. the view containing the textfield does not believe it should intercept taps. This usually occurs because another view is visually in-front (below in the logical view hierarchy) of the view containing the text field. Presumably, displaying and then dismissing the alert alters the view hierarchy and lets the textfield intercept taps.

    That's what I would check first.

提交回复
热议问题