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

新手请教下大神,headerView标题分页悬停那块功能 #30

Open
xxjlovemoney opened this issue Nov 10, 2017 · 5 comments
Open

Comments

@xxjlovemoney
Copy link

看demo中,是底部4个分页,每个分页都必须cell数量累计的高度大于屏幕高度才能界面滑动到顶部或者悬停于需要的高度处,假使第二个分页或者每个分页只有一两个cell,高度只有30或40,如何让标题分页依然可以悬停顶部

@yuping1989
Copy link
Owner

更新2.4版本,设置你的tableView的contentInsets属性的bottom这个值,例如:
self.tableView.contentInset = UIEdgeInsetsMake(0, 0, 900, 0);

@xxjlovemoney
Copy link
Author

嗯,这样可以,但是如果我每个分页的都是请求返回的数据,可能一条也可能很多条,设置内边距的话每次高度不确定啊,能不能往上滑的时候headerView直接悬停于需要停的高度,每个分页滑动都不受影响,headerView一直悬停于某处

@xxjlovemoney
Copy link
Author

大神,这样可以实现吗,现在有需求需要这么做,跪求

@yuping1989
Copy link
Owner

你加我qq,290180695,我们QQ上聊

@534254884
Copy link

在 Swift工程中使用 headView 效果的样式出错,侧滑闪退, 是否支持 Swift工程??

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

3 participants