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

  • Home
  • SEARCH
  • 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 8900309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:04:31+00:00 2026-06-15T01:04:31+00:00

I’ve created a UIScrollView within interface builder, and I have linked this all up

  • 0

I’ve created a UIScrollView within interface builder, and I have linked this all up correctly. When I try to set userInteractionEnabled on the scrollV it doesn’t seem to change the value (see below):

Not changing

I’ve printed out numerous values to check what is happening and I am getting confused:

(lldb) p self.scrollV.userInteractionEnabled

(BOOL) $3 = NO

(lldb) p self.scrollV.contentSize
(CGSize) $4 = (width=320, height=479)

(lldb) p self.scrollV.frame
error: property ‘frame’ not found on object of type ‘UIScrollView *’ error: 1 errors parsing expression

I found it weird that the frame property was not showing, however when I print out the scrollView by itself I get the following:

(lldb) po self.scrollV

(UIScrollView *) $5 = 0x16f7a8d0 <UIScrollView: 0x16f7a8d0; frame = (0 60; 320 312); clipsToBounds = YES; autoresize = RM+TM; gestureRecognizers = <NSArray: 0x16fb2630>; layer = <CALayer: 0x16f08860>; contentOffset: {0, 0}>

This seems to imply to me that there are 2 UIScrollViews working independently of one another, I originally had the scrollV declared as follows an instance variable using IBOutlet UIScrollView *scrollV;

However, to see if this was causing an issue for some reason I have also tried using:
@property (nonatomic, retain) IBOutlet UIScrollView *scrollV; and changing all the references to ‘self.’.

Can anyone offer any advice as to why this would be happening? I am currently adding objects to the scrollV using the following function:

- (void)addTitle:(NSString *)title withText:(NSString *)text andPosition:(int *)yPos
{
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(4, *yPos, 312, 30)];
    [titleLabel setTextColor:kBlueColor];
    [titleLabel setText:[NSString stringWithFormat:@" %@", title]];
    [titleLabel setFont:[UIFont boldSystemFontOfSize:18]];

*yPos += titleLabel.frame.size.height;

// Rounds up the int
int tbHeight = (([text length] + 40 - 1) / 40);

tbHeight = 19 + (19 * tbHeight);

UITextView *textV = [[UITextView alloc] initWithFrame:CGRectMake(4, *yPos, 312, tbHeight)];
[textV setTextColor:kBlueColor];
[textV setFont:[UIFont systemFontOfSize:14]];
[textV setScrollEnabled:NO];
[textV setShowsVerticalScrollIndicator:NO];
[textV setEditable:NO];
[textV setText:text];

*yPos += textV.frame.size.height + 5;

[self.scrollV addSubview:titleLabel];
[self.scrollV addSubview:textV];
}

I have added the code just incase any of this is interfering with the scrollV for some reason. When running the app all the views are shown, so the scrollV definitely exists and is linked up in IB fine.

Any advice on this matter would be very welcome.

Thanks!

  • 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-15T01:04:32+00:00Added an answer on June 15, 2026 at 1:04 am

    Okay I managed to solve this, it appears I accidentally set the UIView userInteractionEnabled to NO within interface builder. This will apply this to all subviews, thus causing my scrollView to be NO as well.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
This could be a duplicate question, but I have no idea what search terms
I have a text area in my form which accepts all possible characters from
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.