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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:17:14+00:00 2026-06-12T20:17:14+00:00

I have implemented a paging UIScrollView following this excellent tutorial: http://www.iosdevnotes.com/2011/03/uiscrollview-paging/ The UIScrollView works

  • 0

I have implemented a paging UIScrollView following this excellent tutorial:
http://www.iosdevnotes.com/2011/03/uiscrollview-paging/

The UIScrollView works like a charm with paging and all. Now, I want to add a UITextView to each of the pages. The TextView should have a fixed size to fit the frame but with scrolling content (if needed). I’m banging my head against the wall because no matter what I try I can’t get the textview to scroll! In the main for-loop from the above tutorial I added the following code:

CGRect labelFrame;
UITextView *textView;

labelFrame.size.width = scrollView.frame.size.width-24;
labelFrame.size.height = scrollView.frame.size.height-48;
labelFrame.origin.x = 10;
labelFrame.origin.y = 40;

textView = [[UITextView alloc] initWithFrame:labelFrame];
textView.textColor = [UIColor blackColor];
textView.backgroundColor = [UIColor redColor];
textView.font = [UIFont systemFontOfSize:13];
textView.text = @"a very long text";

textView.editable = NO;
textView.scrollEnabled = YES;
textView.userInteractionEnabled = YES;
textView.delegate = self;
textView.contentSize = CGSizeMake(1, 1000); //this would make it scroll?
[subview addSubview:textView];

I’ve googled and tested a lot of things but the textview won’t scroll. I tested the delaysContentTouches flag, I’ve locked scrolling directions but it does not change a thing.
In another project I tried to do the same and there I got it to scroll on the first page but not on the others?

I’m totally lost in space right, hope that anyone out there have the (probably simple) solution.

Here is a link to the complete project:

https://dl.dropbox.com/u/7312515/mycode.zip

  • 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-12T20:17:15+00:00Added an answer on June 12, 2026 at 8:17 pm

    I just tested this and it works fine.

    In your code, you are adding the text view to the subview. Instead, you should be adding it to the scroll view.

    The subview does nothing, just provide the red color. You can send it to the back by calling

    [self.scrollView bringSubviewToFront:textView];
    

    PS: Don’t forget to adjust the x of labelFrame to subview.frame.size.width +10. 😉

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

Sidebar

Related Questions

i've followed the pagination tutorial from http://framework.zend.com/manual/en/zend.paginator.usage.html I have successfully implemented pagination for my
I have implemented this pager based on the nerddinner tutorial . I had previously
WCF/C# N-Tier app. We have implemented Paging in our business Layer using this snippet
I have an asp.net-MVC project and I have implemented a paging mechanism using this
I have implemented paging for a large set of data in an application by
I've have already implemented pagination using the following code: public Paginacao<Anuncio> consultarPaginado(int pagina, Integer
I have implemented correctly bump's api, and added this code: - (void) configureBump {
I have implemented clean URLs using the following in my .htaccess RewriteEngine on RewriteCond
I have paging UIScrollView with images. I want to implement animated zooming of image
I would like to implement an app using a UIScrollView with paging, similar to

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.