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 8427833
In Process

The Archive Base Latest Questions

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

I have two horizontal scrollbar ,contents of the upper scroll bar are static where

  • 0

I have two horizontal scrollbar ,contents of the upper scroll bar are static where as contents of the lower scroll bar are dynamic and depend on the selection of item in the upper scroll bar.
Now selection is not a normal selection with a click, selection occurs when that particular item comes under that pointer above the scroll bars.As the contents of the upper scroll bar are static selection is not a problem beacause I can identify which item is under that pointer with the help of the offset which I can get with help of the scrollview delegate method scrollViewDidEndDecelerating & scrollViewDidEndDragging.
Problem is with the lower scroll bar where contents are dynamic thats why I can not identify which item is under the pointer,is there any way to identify which item is currently under that pointer for the lower scroll bar beacause further porcessing depends on the selection of item in the second scroll bar.
Please help me if any one has an idea about how to do that.

  • 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-10T04:53:16+00:00Added an answer on June 10, 2026 at 4:53 am

    I’m not quite sure what you mean when you say “dynamic”. The second lower scrollbar has contents that change often. So when you populate that scrollView, you should use a mutable container to keep track of what is where.

    For example, create a NSRange for each horizontal item (ie location is 0, length is 100, location is 100, length is 50), turn that into a NSValue, and store this NSValue as the key and your “object” at that location in a mutable dictionary. When you need to know what’s under the pointer (which is say x=160), you add that value to the lower scrollView contentOffset (which is say 200) and get 260 as the offset in question, then you iterate through your dictionary looking for the item that contains the range 260.

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

Sidebar

Related Questions

I have a ListBox with horizontal scrolling, and each item consists of a two
I have to make a horizontal month slider which will have two pointers which
I have two labels (A and B) in a Flex VBox, with the horizontal
I have two labels that are stacked. If I want a horizontal line between
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have a page with two iframe contents which are split horizontally. The left
I have two functions, horizontal and vertical, for laying out controls. They work like
I have two little problems with my UIScrollView. I managed to create scroll view,
I am using viewpager with action-bar tab and I am have two fragment in
I have two nested UIScrollViews: the parent limited to horizontal paging and the child

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.