gpt4 book ai didi

iphone - 滚动到顶部时闪烁滚动指示器

转载 作者:可可西里 更新时间:2023-11-01 05:42:26 24 4
gpt4 key购买 nike

当我点击状态栏滚动到 UIScrollView 的顶部时,滚动指示器在滚动时出现,然后在停止时消失。

当我使用 [scrollView setContentOffset:CGPointZero animated:YES] 以编程方式滚动到顶部时,滚动指示器在滚动到顶部时消失。

有没有办法以编程方式产生与用户点击状态栏时发生的行为类似的行为?

最佳答案

是的,确实如您所想的那样。

来自UIScrollView引用

flashScrollIndicators

Displays the scroll indicators momentarily.

  • (void)flashScrollIndicators

Discussion You should call this method whenever you bring the scroll view to front.

Availability Available in iOS 2.0 and later. Declared InUIScrollView.h

关于iphone - 滚动到顶部时闪烁滚动指示器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8457074/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com