iPhone X how to handle View Controller inputAccessoryView?

前端 未结 15 2685
长情又很酷
长情又很酷 2020-11-30 00:43

I have a messaging app that has the typical UI design of a text field at the bottom of a full screen table view. I am setting that text field to be the view controller\'s

15条回答
  •  天命终不由人
    2020-11-30 01:26

    -- For those who are using the JSQMessagesViewController lib --

    I am proposing a fixed fork based on the JSQ latest develop branch commit.

    It is using the didMoveToWindow solution (from @jki I believe?). Not ideal but worth to try while waiting for Apple's answer about inputAccessoryView's safe area layout guide attachment, or any other better fix.

    You can add this to your Podfile, replacing the previous JSQ line:

    pod 'JSQMessagesViewController', :git => 'https://github.com/Tulleb/JSQMessagesViewController.git', :branch => 'develop', :inhibit_warnings => true
    

提交回复
热议问题