I had added UIDatePicker
in storyboard. Now, I have solved the issue by creating UIDatePicker
through code and setting it as inputView. I am still looking for an answer that explains the reason why it did not work with storyboard. I will change accepted answer if I get any.
iOS 7 : UITextField inputView issue when set to UIDatePicker
-
07-10-2022 - |
Question
I have set UIDatePicker
as TextField
's inputView. When TextField
becomes firstResponder
the first time, UIDatePicker
's height is smaller than standard height as shown below :
Then after any time TextField
becomes firstResponder
, UIDatePicker
's height is correct as shown below :
This issue is not there when I run app on iOS 6 simulator, but only there when run on iOS 7.
Any idea why is this? Can it be related to auto layout?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow