pujiaxin33 / JXSegmentedView

A powerful and easy to use segmented view (segmentedcontrol, pagingview, pagerview, pagecontrol, categoryview) (腾讯新闻、今日头条、QQ音乐、网易云音乐、京东、爱奇艺、腾讯视频、淘宝、天猫、简书、微博等所有主流APP分类切换滚动视图)
MIT License
2.69k stars 370 forks source link

如何禁用顶部点击 #109

Closed JessYan0913 closed 2 months ago

JessYan0913 commented 4 years ago

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

pujiaxin33 commented 4 years ago

你是想说顶部状态栏?

JessYan0913 commented 4 years ago

你是想说顶部状态栏?

是的

JessYan0913 commented 4 years ago

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

JessYan0913 commented 4 years ago

请问JXSegmentedView可以实现这样的需求嘛?

------------------ 原始邮件 ------------------ 发件人: "暴走的鑫鑫"<notifications@github.com>; 发送时间: 2020年7月20日(星期一) 下午4:18 收件人: "pujiaxin33/JXSegmentedView"<JXSegmentedView@noreply.github.com>; 抄送: "严恒"<1141326491@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [pujiaxin33/JXSegmentedView] 如何禁用顶部点击 (#109)

你是想说顶部状态栏?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

pujiaxin33 commented 4 years ago

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