Changing the frame of an inputAccessoryView in iOS 8

后端 未结 9 2127
遇见更好的自我
遇见更好的自我 2020-12-13 02:42

Long time lurker - first time poster!

I am having an issue while recreating a bar with a UITextView like WhatsApp does it.

I am using a custom <

9条回答
  •  情歌与酒
    2020-12-13 03:04

    To fix this I used inputAccessoryView.autoresizingMask = UIViewAutoresizingFlexibleHeight;

    But of course this caused my textview to collapse. So adding a constraint to the toolbar and updating it when I have to, or adding the constraint to the textview itself and update it worked for me.

提交回复
热议问题