Question

I have set UIDatePickeras TextField's inputView. When TextField becomes firstResponder the first time, UIDatePicker's height is smaller than standard height as shown below :

enter image description here

Then after any time TextField becomes firstResponder, UIDatePicker's height is correct as shown below :

enter image description here

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?

Was it helpful?

Solution

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.

OTHER TIPS

I think it's a "spring issue"... I've solved with this settings:

enter image description here

Take a look at the Autoresizings...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top