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

子VC的tableview的contentSize高度不够 #24

Open
Fgoson opened this issue Oct 8, 2018 · 10 comments
Open

子VC的tableview的contentSize高度不够 #24

Fgoson opened this issue Oct 8, 2018 · 10 comments

Comments

@Fgoson
Copy link

Fgoson commented Oct 8, 2018

大神,多个子VC的tableview,有一个tableview的contentSize高度不够,划动到其他的tableview,然后向上划动一点距离,再划动回来contentSize高度不够的tableview,那么tableview和tabar之间就会空白一段距离啊。就是少了一个判断tableview的contentSize高度不够的实现。。。bug

@panghaijiao
Copy link
Owner

这个headerView不是会自动缩回来嘛,你可以试试开启HJTabViewControllerPlugin_BottomInset插件

@Fgoson
Copy link
Author

Fgoson commented Oct 8, 2018

这个headerView不是会自动缩回来嘛,你可以试试开启HJTabViewControllerPlugin_BottomInset插件

好像看见你说不建议开启HJTabViewControllerPlugin_BottomInset插件

@panghaijiao
Copy link
Owner

因为正常情况下,当contentSize不足时,headerView会自动缩回来,可能有些产品交互不想缩回来,开发同学自己不想写代码可以直接开启HJTabViewControllerPlugin_BottomInset,但是越简单,可定制就越差,最好的方式就是,开发同学根据自己的产品定向优化,比如当contentSize不足时,开发同学可以在底部补一个tablefooterView

@Fgoson
Copy link
Author

Fgoson commented Oct 8, 2018

因为正常情况下,当contentSize不足时,headerView会自动缩回来,可能有些产品交互不想缩回来,开发同学自己不想写代码可以直接开启HJTabViewControllerPlugin_BottomInset,但是越简单,可定制就越差,最好的方式就是,开发同学根据自己的产品定向优化,比如当contentSize不足时,开发同学可以在底部补一个tablefooterView

试了开启HJTabViewControllerPlugin_BottomInset是会自动缩回去,但是contentSize不足时,手动向上划动到顶部去了。。。

@panghaijiao
Copy link
Owner

不开启 HJTabViewControllerPlugin_BottomInset 会自动缩回去,开启了不会自动缩回去,对了,contentSize不足时可以找到子VC的tabContentScrollView吗

@Fgoson
Copy link
Author

Fgoson commented Oct 8, 2018

不开启 HJTabViewControllerPlugin_BottomInset 会自动缩回去,开启了不会自动缩回去,对了,contentSize不足时可以找到子VC的tabContentScrollView吗

你的里面有找到啊,嗯,谢谢大神了,我看看

@Fgoson
Copy link
Author

Fgoson commented Oct 10, 2018

不开启 HJTabViewControllerPlugin_BottomInset 会自动缩回去,开启了不会自动缩回去,对了,contentSize不足时可以找到子VC的tabContentScrollView吗

大神,不好意思我搞不定,你有空帮忙弄一下咯

@panghaijiao
Copy link
Owner

你想要实现成什么样式,contentSize不够缩回还是不缩回,不缩回就开启HJTabViewControllerPlugin_BottomInset ,想缩回,我的demo应该就会自动缩回,没遇到你说的空一段距离的问题,你可以做个demo发给我

@Fgoson
Copy link
Author

Fgoson commented Oct 10, 2018

你想要实现成什么样式,contentSize不够缩回还是不缩回,不缩回就开启HJTabViewControllerPlugin_BottomInset ,想缩回,我的demo应该就会自动缩回,没遇到你说的空一段距离的问题,你可以做个demo发给我

嗯,怎么发demo发给你呢

@panghaijiao
Copy link
Owner

可以加我的技术交流QQ群 549749502,我的简介上面都有的

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