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

请问, 怎么能像斗鱼iOS首页一样的效果, 导航栏和标签栏都能透过内容? #13

Open
ghost opened this issue Jun 14, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 14, 2016

请问, 怎么能像斗鱼iOS首页一样的效果, 导航栏和标签栏都能透过内容?

@ghost ghost changed the title 让 edgesForExtendedLayout保持默认的值 请问, 怎么能像斗鱼iOS首页一样的效果, 导航栏和标签栏都能透过内容? Jun 14, 2016
@wangmchn
Copy link
Owner

@xzhangyueqian 这个我具体没有实现过,可以尝试下设置MenuView的背景颜色的alpha值,理论上如果你的TableView的Cell的height足够大的话,tableView滑动后还是会透过导航栏和标签栏的。

@ghost
Copy link
Author

ghost commented Jun 14, 2016

其实使用起来真的很不错, 就是在里面放tableVew为什么下面没内容, 我没
screen shot 2016-06-14 at 4 37 38 pm

, 红色的是我的pageController里的三个tableViewController中的一个, 蓝的是自己定义的pageViewController子类..

@wangmchn
Copy link
Owner

好像是默认了scrollView的clipToBouns属性为ture,我这边做下修改先

wangmchn added a commit that referenced this issue Jun 14, 2016
Signed-off-by: wangmchn <[email protected]>
@wangmchn
Copy link
Owner

我设置了 scrollView.clipToBouns = false
你更新下代码,然后把自己的tableViewController.view.clipToBouns也设置为false再试试?

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