Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS8 - keyboard input accessory view with dynamic height

We have a UITextView with a keyboard input accessory - the accessory is another UIView with a few buttons and another UITextView that grows in height as needed to display a message. (similar to what you see in iMessage)

Everything works fine up through iOS7 and the input accessory grows upward above the keyboard when we update the frame size. But with iOS8, the accessory view grows downward extending over the predictive text and keyboard.

Is there a new way to tell the iOS8 keyboard view to relayout the accessory views? I've tried calling ReloadInputViews() and it doesn't seem to change anything.

Stuck on this - thanks for the help.

like image 302
Ender2050 Avatar asked Sep 29 '14 15:09

Ender2050


1 Answers

I override the addConstraint method on my view as apple sets a constraint with constant height for iOS8. This seems to solve the issue.

like image 51
Mikael Bartlett Avatar answered Nov 02 '22 19:11

Mikael Bartlett