Changing the frame of an inputAccessoryView in iOS 8

后端 未结 9 2128
遇见更好的自我
遇见更好的自我 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:11

    Unfortunately, iOS8 adds a private height constraint to the inputAccessoryView, and this constraint is not public.

    I recommend recreating the accessory view when its frame should change, and call reloadInputViews so that the new one is installed.

    This is what I do, and it works as expected.

提交回复
热议问题