i have a chat view contain tableView
and textView
, i'm using IQKeyboardManagerSwift
for manage keyboard, after each send message request i get list again (call webService), when keyboard is appear and i send message keyboard closes very quickly and then opens, i can't find where is happening, I try disable IQKeyboardManagerSwift
for this class, i don't have any view End Editing code in my viewController
. i want to keyboard appear always As long as the user close keyboard.
How can solve this problem?
答案 0 :(得分:0)
我发现问题,当我关闭键盘以显示更新列表的视图时,我有一个用于加载视图的gif,并且我使用SwiftGifOrigin来为gif设置动画。我从服务器获取列表时删除了startLoading方法,现在显示了键盘。