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

associateTableView设置后键盘回落有问题 #10

Open
gdfyj90 opened this issue Nov 22, 2016 · 3 comments
Open

associateTableView设置后键盘回落有问题 #10

gdfyj90 opened this issue Nov 22, 2016 · 3 comments

Comments

@gdfyj90
Copy link

gdfyj90 commented Nov 22, 2016

我的视图结构是:
1没有导航栏,但顶部有个自定义的view,高度跟导航栏不一样。
2中间是table
3底部就是你的keyboard

问题:
在设置了_chatKeyBoard = [ChatKeyBoard keyBoard]和_chatKeyBoard.associateTableView = self.table之后,点击输入框键盘弹起,顶部自定义的view看不到了(我估计是被table挡住),但是键盘回落的时候顶部的view依然看不到。

@iiicp
Copy link
Owner

iiicp commented Nov 24, 2016 via email

@gdfyj90
Copy link
Author

gdfyj90 commented Nov 25, 2016

初始化方法都试过了,结果一样的,原因是你在调整表的frame的时候,直接是
//更新表的frame _associateTableView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.origin.y);
所以table就固定在顶部了。。。

@iiicp
Copy link
Owner

iiicp commented Nov 25, 2016

可能你需要定制一下了,🤓🤓

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

2 participants