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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:17:21+00:00 2026-05-18T07:17:21+00:00

I load local data inside a UIWebView. That instance of UIWebView is added to

  • 0

I load local data inside a UIWebView. That instance of UIWebView is added to a UITableViewCell as a subview inside method

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

with the following snippet:

[myCell addSubview:aWebView];

The filled webview’s height is larger than the cell’s height, so that the webview should be scrollable inside the cell. Actually this works on iOS 4.1 device and on iOS 3.2 simulator sucessfully. But going back to a iOS 3.1.3 device gets the webview fixed and unscrollable. Does anyone have a hint how to solve this for backwards compatibilty reasons?

  • 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-05-18T07:17:21+00:00Added an answer on May 18, 2026 at 7:17 am

    First I thought aWebView didn’t receive touch events and therefor it would not scroll. After approaches as

    [aWebView becomeFirstResponder];
    

    and

    [aWebView setUserInteractionEnabled:YES];
    

    I realized that aWebView was responsive. It just didn’t scroll in iOS 3.1.3. Adding aWebView to a UIScrollView instance, which was added as a subview to the cell’s contentView, made the web view scrollable in both, iOS 3.x and iOS 4.x.

    [aScrollView addSubview:aWebView];
    [aScrollView setContentSize:CGSizeMake(300, 600)];
    [myCell.contentView addSubview:aScrollView];
    

    The above code snippet basically does it. Don’t forget to set scrollview’s content size again, after the webview finished loading content. OS fragmentation is naughty.

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

Sidebar

Related Questions

I am building an iPad app that loads local html files in a UIWebView.
I'm working with a PhoneGap app that uses Safari local storage (SQlite DB) via
I have a page that displays data from an object. I'm loading the object
I got same warning here local declaration hides instance variable warning but I got
I ve created a sample REST web service which writes some data in a
I have two DB's one is feed by filtered data from another, now i'm
I have a couple of servers and a load balancer. I want to show
I have some basic questions about core data (which I am new to) and
I have a WPF application which uses a (currently) local database to act as
Using Windows Server 2003, MySQL 5.1.23, MySQL .NET Connector 6.2.2 I am trying 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.