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

  • Home
  • SEARCH
  • 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 6123659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:02:33+00:00 2026-05-23T16:02:33+00:00

I have a scrollView that I’d like to programmatically move based on the delta

  • 0

I have a scrollView that I’d like to programmatically move based on the delta, or change of another scrollView. So if my first scrollView moves down 10px, I need to get that number, and adjust the second scrollView down 10px, and allow them to be in different positions.

The only other way I’ve gotten it to work (thanks to someone else’s post on here) is with this code:

[scrollView setContentOffset:offset animated:NO];

But that just makes them have the same XY coordinates, which isn’t what I’m looking for.

Thanks for your help!

  • 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-05-23T16:02:34+00:00Added an answer on May 23, 2026 at 4:02 pm

    Just use the delegate method

    - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
    

    To determine the value of each content offset when scrolling starts. Then each time scrolling is updated you can tell how much it has changed by, and adjust the other scroll view. It’s just math.

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

Sidebar

Related Questions

I have a scrollview control that has a StackPanel (Orientation=Vertical) UI Element inside of
I have an app that shows a series of UIImageView s on a ScrollView
I have a ScrolLView that wraps a ViewFlipper. The content in the ViewFlipper is
I have a scrollview that I had to the view of the view controller
I have a GridView inside of a LinearLayout inside of a ScrollView that pages
I have a simple ViewController that looks like this: @interface MyViewController : UIViewController<UIScrollViewDelegate> {
I have a tableview with cells that have a scrollview in them. The scrollview
I have a view with a UINavBar in it, and a scrollview beneath that.
I have a scrollview that automatically generates a series of subviews containing imageviews. The
I have a scrollView that is 900 high. At the bottom I have a

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.