Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

聊天框 Input toolbar消失 #64

Open
NSChris opened this issue Jun 7, 2018 · 1 comment
Open

聊天框 Input toolbar消失 #64

NSChris opened this issue Jun 7, 2018 · 1 comment

Comments

@NSChris
Copy link

NSChris commented Jun 7, 2018

你好,我遇到了跟 #60 一样的问题
我发现可能跟IQKeyboardManager有关,我现在用的是最新的6.0.3版本
当我从控制器 A 准备 push到聊天控制器B的时候,如果不设置B.hidesBottomBarWhenPushed = YES,push进控制器 B 那个输入框就不见了,如果设置了的话进来就是正常的。 但是现在的问题是控制器B push到控制器C 然后再pop回控制器B的时候,那个输入框就又不见了。
我想可能是哪里有冲突

@NSChris
Copy link
Author

NSChris commented Jun 7, 2018

我找到问题所在了...

在ZHCMessagesViewController.h中 [self zhc_registerForNotifications:YES]; 这句代码在- (void)viewDidLoad里面 当从B push进C之后 键盘的通知被释放掉了 再从C pop回B时没有重新注册通知
把 [self zhc_registerForNotifications:YES]; 这句写到- (void)viewWillAppear:(BOOL)animated里面后问题解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant