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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:44:59+00:00 2026-06-15T02:44:59+00:00

I have a UIScrollView inside another UIScrollView . For example: This grey area is

  • 0

I have a UIScrollView inside another UIScrollView. For example:
enter image description here

This grey area is my device.
Red scrollview is in the background
Yellow scrollview is a subview in red scrollview.

What i want to do is scroll up and down and still have an option to scroll right/left. But when i set delegate to yellow scroll view i cant move right/left. How to handle this ?

  • 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-15T02:45:00+00:00Added an answer on June 15, 2026 at 2:45 am

    It is very easy, you just have to check which scrollView you are using to call the delegate method.

    In your delegate method:(your delegate method receives a parameter UIScrollView *)scrollView

    if(scrollView == scrollView1) {
    
    //do stuff for scrollView1 like setContentSize
    
    } else {
    
    //do other stuff
    
    }
    

    This is how you control 2 scrollViews with one delegate method.

    About what you want to do:

    It more be more useful to only make 1 scrollView and set its properties so you scroll to left and right and up and down, two scrollviews are useless and the fact, that they overlay is a problem because the scrollview underneath can not be accessed.

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

Sidebar

Related Questions

I have this UIScrollView inside another UIView, not occuping the entire area (all this
I have a UIWebView which inside a UIScrollView (scrollview contain another component) I tried
I have a UIScrollView with a UIView inside. I want to lock the x-axis
I have a uiscrollview and there is a uiimageview inside it. I want the
I have a UITableView inside of a UIScrollView. While this isn't ideal, it was
I have a UISCrollview. Inside this scroller I have a picture and over the
I have a UIWebView inside UIScrollView . This idea is to be able to
I want to put a second UIScrollView inside of the first page of another
I want to have a UIScrollView that is inside of my UIAlertView . Code
My app looks like this: I have a UIScrollView and there is imageview inside.

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.