简体   繁体   English

UITableView水平滚动指示器

[英]UITableView horizontal scroll indicator

I have a table view inside a navigation controller, which is one view for a tab bar. 我在导航控制器中有一个表格视图,它是选项卡栏的一个视图。

Everytime I launch the app, the horizontal scroll indicator flashes briefly when i select this tab. 每次启动该应用程序时,选择此选项卡时,水平滚动指示器都会短暂闪烁。

Could this be related to the initial tab selected, which does contain a scrollview? 这可能与所选的初始选项卡相关,该选项卡包含滚动视图吗?

I was under the impression that table views couldn't scroll horizontally? 我的印象是表格视图无法水平滚动?

It doesnt seem to affect the app, just annoying thats all. 它似乎并没有影响应用程序,只是烦人了。

Do you do programmatic scrolling in your view? 您是否在视图中进行程序化滚动?

We did this flashing on purpose in one of our apps, using some code to set a new scroll position (0) with animation enabled. 我们在其中一个应用程序中故意进行了此闪烁,使用一些代码在启用了动画的情况下设置了新的滚动位置(0)。

EDIT: There is also the method: flashScrollIndicators in UIScrollView (a UITableView also being a UIScrollView). 编辑:还有一种方法:UIScrollView中的flashScrollIndicators(一个UITableView也是一个UIScrollView)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM