Native App iOS keypad does not close on touch outside input box

I have a native app with a page containing an input form. Now I want that when user taps inside an input field the keypad opens, but there is no way to close it. Tapping outside anywhere else on the page does not work unless it is on some other button or a container with on click action. However, the keypad closes if I tap somewhere outside the text box widgets but within the scroll container in which data view is placed. I don’t want scrolling on whole page so first half of page is without a scroll container. Below it is a scroll container with data view in it. This data view contains the text box widgets for input. So a usual flow would be to close keypad on touching any area in first half of screen i.e., without scroll container. But it is not working like this.  Any suggestion to solve this problem?
0 answers