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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:10:00+00:00 2026-06-01T10:10:00+00:00

I have put an UIImageView and a UITextView in a UIScrollView. The result is

  • 0

I have put an UIImageView and a UITextView in a UIScrollView. The result is that when I scroll, the text scrolls but the image stays on the same place.

Is it possible to make the UIImageView and UITextView to scroll as a whole? Can this be done using the storyboard?

  • 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-01T10:10:01+00:00Added an answer on June 1, 2026 at 10:10 am

    The reason that you are only scrolling the text is that the UITextView has its own UIScrollView and you are only scrolling the UITextViews internal scroll view.


    To achieve what you are looking for you need to:

    • Disable scrolling in the UITextView
    • Make the UITextView big enough to cover all the text
    • Make the UIScrollViews contentSize big enough to cover both the UIImageView and the UITextView
    • Layout the UIImageView and the UITextView in the UIScrollView

    Disable scrolling in the UITextView

    Set scrollingEnabled to false on your textview, this can be done directly in the storyboard.

    Resize the UITextView

    The text view could cover any length of text and without knowing what text is being set, you can’t set the correct size. I.e, you will need to set the size in code when the text is set in the UITextView.

    Resize the contentSize

    See above (if you don’t know the height of the UITextView you can’t know the content size).

    Layout the UIImageView and the UITextView in the UIScrollView

    You can however layout the UIImageView and the UITextView in the storyboard and only change the bounds of the text view and the contentSize of the scrollView when the text is set.


    View hierarchy

    The image below shows how your view hierarchy should look when you are finished. The frame of the scrollView is blue. Its content is red and is bigger than the frame. Within lies the image view (yellow) and the text view (green).

    enter image description here

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

Sidebar

Related Questions

I have put image as background of button. but I don't know at what
I have a UIViewController, on top I put an UIImageView, then a UIScrollView. I
I have an UIImageView on my view. Certain parts of that image, I want
I have one UIButton . I put one image on that. When I click
I have problems updating the image of an UIImageView from within a method that
I have put some Console.WriteLine calls in to test, but they aren't appearing in
I have put 4 image for each folder mdpi,ldpi,hdpi,xdpi in the ratio of 3:4:6:8.
I have a custom UIImageView class that creates thumbnails (UIImageView) and each thumbnail has
Gentleones, I've got a UIImageView that I have in a UIView. This particular UIImageView
I have method that download and resize image according to screen size to fit

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.