Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8967747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:18:53+00:00 2026-06-15T17:18:53+00:00

You can add UIRefreshControl to UICollectionView (or any UIScrollView for that matter) by adding

  • 0

You can add UIRefreshControl to UICollectionView (or any UIScrollView for that matter) by adding it to collection’s subviews:

UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
[refreshControl addTarget:self action:@selector(handleRefresh:) forControlEvents:UIControlEventValueChanged];
[self.collectionView addSubview:refreshControl];

This doesn’t work when collection view layout has UICollectionViewScrollDirectionHorizontal.

I tried overriding layoutSubviews to put refresh control to the left, but it wouldn’t track scrolling progress this way. Can I trick it into working with horizontal layouts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:18:54+00:00Added an answer on June 15, 2026 at 5:18 pm

    I couldn’t find any existing solutions so I extended ODRefreshControl with horizontal layout support:

    enter image description here

    I needed solution in MonoTouch (C#) so I started by source-porting ODRefreshControl and then patched it to work with horizontal layout.

    Full C# source code is here, it should be straightforward to port it back to Objective C.
    All I did was add an utility function and some conditions here and there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can add an item to an array it and I can access that
I can add an icon to a menu item by adding an <icon> to
I can add any additional parameters to every ASP.NET MVC Method and MVC just
I can add an element to a form like this: $form->addElement($element); However, that will
We can add any variable to class dynamically in php. What would be the
Magento can add a suffix that is defined by the user to append onto
How can add image in wordpress custom post? please any one help me.... Thanks
I can add a editText to the scrollview and any other component but when
I can add endpoints using ServiceHost.AddServiceEndpoint . How do I get that list of
I can add a float to my dictionary and that works well: [NSNumber numberWithFloat:[self.longitude

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.