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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:23:28+00:00 2026-06-05T15:23:28+00:00

I am trying to get a UIScrollView on an iPad to work. I have

  • 0

I am trying to get a UIScrollView on an iPad to work. I have looked at nearly all existing questions but none have really solved my problem. So basically here is my code upfront:

[scroll setScrollEnabled:YES];
scroll.contentSize = CGSizeMake(scroll.frame.size.width, 2320);

Called in viewDidLoad by the way. When I build and run, the scroll views side bar changes its position when I scroll (indicating that it is working) but the view does not change/remains at the top. My view consists of many UIImageView‘s, but I do not think that is a problem. Also for my arrangement, my scroll view is at the front of the whole view.

Thank you!

UPDATE:

So basically what is happening is my UIView‘s scroll view does not cover the WHOLE view. It does not cover the most top part where I have a label and a button. But however, when I load it to the iPad, my images are covering the top…. making it now possible to scroll up and down.

Why is this happening?

Screenshot:

On Simulator

UPDATED:

My code:

[scroll setScrollEnabled:YES];
scroll.contentSize = CGSizeMake(scroll.frame.size.width, 1500);

[scroll addSubview: i1];
[scroll addSubview: i2];
[scroll addSubview: i3];
[scroll addSubview: i4];
[scroll addSubview: i5];
[scroll addSubview: i6];
[scroll addSubview: i7];
[scroll addSubview: i8];
[scroll addSubview: line];

Any idea as to why this is happening?

Is adding a subview to the scroll view even correct?

UPDATE:

I have another problem, I have implemented the touchesBegan method and if the user touches any of those images, a pop up containing certain information is shown. That code is pretty standard though, don’t need to show it. So, is there a way for a scroll view to respond to touches for its content?

The problem is that whenever I touch the image, touchesBegan is never called because the scroll view is in front, right? But if I send the scroll view backward scrolling does not work.

I have many problems here as you can see, but instead of looking at my code and trying to solve each mistake. I had a better idea. Here is what I am trying to do:

Have a scroll view on an iPad which scrolls through a timeline which is technically multiple images. These images are touchable. And the scroll view only takes a portion of the screen, the top part is a back button and label which should not scroll. How can I do 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-05T15:23:29+00:00Added an answer on June 5, 2026 at 3:23 pm

    Make sure you set the frames for your subviews properly. If not, your subview will most likely default to a (0,0) position in the scrollview.

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

Sidebar

Related Questions

trying to get my head around Feedzirra here. I have it all setup and
I am trying to get pinch/zoom work but to no luck... please check code
I am trying get the Regex right for the following scenario but have some
I am trying get all html links within a string and replace them using
I am trying get all html links within a string and replace them using
I am trying get Struts 2 and Tiles to work and I am using
Trying to get comfortable with jQuery and I have encountered some sample code that
Trying to get this to work, with no luck: [DataMember] public Type ParameterType {
Trying to get a JSON output to work with jqGrid 'userdata' option. The example
I've been trying to get the converted CGRect of a UIView within a UIScrollView.

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.