panghaijiao / HJTabViewController

A Cool PageViewController
MIT License
310 stars 56 forks source link

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

Open Fgoson opened 5 years ago

Fgoson commented 5 years ago

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

panghaijiao commented 5 years ago

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

Fgoson commented 5 years ago

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

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

panghaijiao commented 5 years ago

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

Fgoson commented 5 years ago

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

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

panghaijiao commented 5 years ago

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

Fgoson commented 5 years ago

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

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

Fgoson commented 5 years ago

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

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

panghaijiao commented 5 years ago

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

Fgoson commented 5 years ago

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

嗯,怎么发demo发给你呢

panghaijiao commented 5 years ago

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