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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:24:16+00:00 2026-06-04T16:24:16+00:00

scrollView.bounces works properly on iOS 5 but when executed on iOS 4, sigabrt error

  • 0

scrollView.bounces works properly on iOS 5 but when executed on iOS 4, sigabrt error is shown. How to set it working for both os? Thank you

- (void)viewDidLoad
{  
    [super viewDidLoad];

    [spinner startAnimating];
    [self.webView1 setDelegate:self];

    self.webView1.scrollView.bounces = NO;
    self.webViewB.scrollView.bounces = NO;

    [self loadIt];

}
  • 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-04T16:24:18+00:00Added an answer on June 4, 2026 at 4:24 pm

    Your problem is not the setting the bounces property of the scrollView but rather trying to access the scrollView property of the webView1 and webViewB objects. Before iOS 5.0 this property was not public so you cannot access it like that.

    You would have to go trough all the suviews of the webView1 and webViewB and find the one that’s a UIScrollView and than set it’s bouncing property. You can do that like this:

    if ([self.webView1 respondsToSelector:@selector(scrollView)]) {
        self.webView1.scrollView.bounces = NO;
        self.webViewB.scrollView.bounces = NO;
    }
    else {
        for (UIView *subview in self.webView1.subviews) {
            if ([subview isKindOfClass:[UIScrollView class]]) {
                UIScrollView *scrollView = (UIScrollView *)subview;
                scrollView.bounces = NO;
            }
        }
    
        for (UIView *subview in self.webViewB.subviews) {
            if ([subview isKindOfClass:[UIScrollView class]]) {
                UIScrollView *scrollView = (UIScrollView *)subview;
                scrollView.bounces = NO;
            }
        }
    }
    

    Let me know if that works for you.

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

Sidebar

Related Questions

I've set scrollview.bounces = NO; and I cannot find anything else that maybe relevant.
I know that ScrollView can have only one Child but in my case I
I changed in ScrollView android:fadeScrollbars=false to ScrollBar be visible and it works fine. My
Is it possible to get the pull-to-refresh scrollview, present in many applications on iOS,
Scrollview not working in android phone <ScrollView android:id=@+id/scrlListView android:layout_width=match_parent android:layout_marginTop=5sp android:layout_height=213dp> <LinearLayout android:id=@+id/linrListView android:layout_width=match_parent
I have a ScrollView with a LinearLayout inside an I'm adding TextViews. But I
- (void)viewDidLoad { MyData *data = [MyData SharedData]; scrollerView.pagingEnabled = YES; scrollerView.bounces = YES;
I know the Apple documentation has the following delegate method: - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView; //
I have a ScrollView with several UIButtons (custom type). The UIButtons are shown as
I have a scrollview and its initialize as this ; scrollV = [[UIScrollView alloc]

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.