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

如何禁用顶部点击 #109

Closed
JessYan0913 opened this issue Jul 20, 2020 · 5 comments
Closed

如何禁用顶部点击 #109

JessYan0913 opened this issue Jul 20, 2020 · 5 comments
Labels
question Further information is requested

Comments

@JessYan0913
Copy link

有这样一个需求,顶部的tab不能点击,类似于UIPageControl的作用。但是奈何UIPageControl的样式过于单一,JXSegmentedView又没有禁用tab点击的属性。有没有什么更好的方法嘛?

@pujiaxin33
Copy link
Owner

你是想说顶部状态栏?

@JessYan0913
Copy link
Author

你是想说顶部状态栏?

是的

@JessYan0913
Copy link
Author

想实现的是顶部状态栏不可点击,但是跟随contentScrollView而变化

@JessYan0913
Copy link
Author

JessYan0913 commented Jul 20, 2020 via email

@pujiaxin33
Copy link
Owner

第一,你可以看一下UIScrollView.scrollsToTop属性的解释。
第二,你可以在listDidAppear代理方法,把列表的scrollsToTop设置为true。

@pujiaxin33 pujiaxin33 added the question Further information is requested label Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants