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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:33:12+00:00 2026-06-06T18:33:12+00:00

i have a scroll view in my application and i want that when the

  • 0

i have a scroll view in my application and i want that when the user scrolls it down, so its contentOffset.y reaches -50, the scroll view will animate to the bottom of the screen (at this point the scrollview won’t be visible).

I managed to do this, but when i animate my scrollview back so it gets visible again it loses touch events and won’t scroll anymore.

i already tried to set scrollEnabled and userInteractionEnabled to YES but nothing works. If someone could help i would appreciate.

Thanks.

This is the code when i animate my scroll view to the bottom of the screen

[UIView animateWithDuration:0.5 animations:^
     {     
         CGRect scrollRect = self.scrollView.frame;
         CGRect newFrame = CGRectMake(scrollRect.origin.x, 367, scrollRect.size.width, self.scrollView.contentSize.height);
         self.scrollView.frame = newFrame;
     }
     completion:^(BOOL finished)
     {
         self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(doneButtonPressed:)] autorelease];
     }];

And this is the code where i make my scroll view visible again

[UIView animateWithDuration:0.5 animations:^
 {
     CGRect scrollRect = self.scrollView.frame;
     CGRect newFrame = CGRectMake(scrollRect.origin.x, 0, scrollRect.size.width, self.scrollView.contentSize.height);
     self.scrollView.frame = newFrame;
 }
 completion:^(BOOL finished)
 {
     self.navigationItem.leftBarButtonItem = nil;
     self.scrollView.scrollEnabled = YES;
     self.scrollView.userInteractionEnabled = YES;
     _canScroll = YES;
 }];

and after that i can’t scroll it anymore.

  • 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-06T18:33:13+00:00Added an answer on June 6, 2026 at 6:33 pm

    You are setting scroll view height as self.scrollView.contentSize.height so scroll view will not be scrollable vertically.Try by changing it to self.scrollview.frame.height

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

Sidebar

Related Questions

I have a scroll view with transparent background that covers most of the screen.
I have an application in which i have a scroll view and i have
I have an reader application which have a night mode view,that is if the
My application have an function that allow user to move and scale the image
I have an application with a view that has text fields from the top
I have custom view in my application which can be scrolled by the user.
In my iPad application, i've a scroll view that lists images of 20 video
I have one scroll view in my application which has the pallete of colors
I have an scroll view with some sophisticated animations happening during scrolling. Although after
i have a scroll view with multiple images and i am using this code.

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.