使用大标题时,不会触发UIScrollView中的UIRefreshControl

问题描述 投票:0回答:1

当我使用大型标题导航栏时,下拉时不会触发为ScrollView添加的UIRefreshcontrol

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

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

如何使它适用于大型游戏?

enter image description here

ios objective-c cocoa-touch uiscrollview uirefreshcontrol
1个回答
1
投票

我前一段时间遇到了同样的问题,对我而言,我可以通过在scrollView.refreshControl.didMoveToSuperview()中调用viewDidAppear来使其工作。

© www.soinside.com 2019 - 2024. All rights reserved.