【问题标题】:UIRefreshControl in a UIScrollView is not triggered when Large title is used使用大标题时不会触发 UIScrollView 中的 UIRefreshControl
【发布时间】:2019-08-04 02:57:20
【问题描述】:

当我为导航栏使用大标题时,下拉时不会触发为 UIScrollView 添加的 UIRefresh 控件

{
    self.scrollView.refreshControl = [[UIRefreshControl alloc] init];
    [self.scrollView bringSubviewToFront:self.scrollView.refreshControl];
    // add target
}

当我使用普通的小标题时,它会通过触发事件开始工作

如何使它适用于大标题?

【问题讨论】:

标签: ios objective-c cocoa-touch uiscrollview uirefreshcontrol


【解决方案1】:

前段时间我遇到了同样的问题,对我来说,我可以通过在viewDidAppear 中调用scrollView.refreshControl.didMoveToSuperview() 来解决它。

【讨论】:

  • 有效...你是怎么发现的?
猜你喜欢
  • 2011-05-11
  • 2011-05-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-02-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多