Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transparent space between UITextField Input View and Accessary View

I have tool bar as input accessary view and datepicker as input view for my date textfield.

enter image description here

Hotel booking label is behind that datepicker. When I touch on date textfield, It shows both input view and accessary view as I need. But what is the reason for that transparent space between input view and accessary view.

This issue started from Xcode 9.

Note :

When I copy date picker and toolbar from old projects then there is no transparent space. Its working as we expected. But When I drag date picker and toolbar from xcode 9 and above then there is a transparent space.

Please help me to fix this issue. Thanks in advance.

like image 849
Mani murugan Avatar asked Dec 18 '25 13:12

Mani murugan


1 Answers

Also faced with this when drag from the object library toolbar and date picker to the storyboard.

Input view allows set your own view above keyboard. In portrait mode keyboard's height is 216. I've changed height of of the date picker from standard 162 to 216.

picker's height

Need think more about why when copy from old projects there are no space between accessory view and picker.

like image 92
Hot'n'Young Avatar answered Dec 20 '25 08:12

Hot'n'Young



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!