Search code examples
iosobjective-ccocoa-touchuiscrollviewuirefreshcontrol

UIRefreshControl in a UIScrollView is not triggered when Large title is used


When i use large titles for the Navigation bar, the added UIRefresh control for the UIScrollView is not triggered when pulled down

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

When i use normal small titles, it starts working by triggering the event

How to make it work with large titles?

enter image description here


Solution

  • I had the same problem a while ago and for me I could make it work by calling scrollView.refreshControl.didMoveToSuperview() in viewDidAppear.