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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:18:46+00:00 2026-05-22T14:18:46+00:00

I have a UIWebView on the bottom of a UITableView: [self.tableView setTableFooterView:webview]; I need

  • 0

I have a UIWebView on the bottom of a UITableView:

[self.tableView setTableFooterView:webview];

I need to add some buttons at the end of the UIWebView. The height of the UIWebView isn’t constant. If I do something like

[webview addSubview:button];

The button will overlap the webview, since the coordinates of the button’s frame are based on the beginning of the UIWebView.
I thought about defining the button’s frame after finishing load the UIWebView:

- (void)webViewDidFinishLoad:(UIWebView *)webView {
    CGRect frame = CGRectMake(10, webView.bounds.size.height, 280, 21);

But the problem is that I also have some data in the UITableView and it’s height isn’t constant. Of course I could keep the height of the UITableView in a variable while I’m building it, but I think that’s a very ugly solution.
I also thought about having 2 footers in the UITableView, but it doesn’t look like it is possible…
Just in case it is relevant, the UIWebView loads a HTML string before the buttons are added.
Any ideas?

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-05-22T14:18:46+00:00Added an answer on May 22, 2026 at 2:18 pm

    You say you thought of having two footer views. Obviously UITableView doesn’t support that. But what you can do is create a custom UIView to contain the UIWebView and the buttons, e.g.:

    +--------------------------+
    |                          |
    |                          |
    |                          |
    |         web view         |
    |                          |
    |                          |
    +--------------------------+
    |                          |
    | [button]        [button] |
    |                          |
    +--------------------------+
    

    And then set that as the tableview’s footer view.

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

Sidebar

Related Questions

I have a view with a bottom toolbar and a UIWebview that is loading
So I have a UIWebView implemented in one .m file and a UITableView implemented
I have the same problem as described here: UIWebView doesn't scroll to the bottom
I have a translucent toolbar over the bottom of my UIWebView . The trouble
so I have UIWebView in my application and I load some html (article) to
I have a uiwebview which loads documents from local file system. Some of the
I have a UIWebView with static textual content and need to get the rect
i have UIWebView and some text on there so i want publish my text
I have a UIWebView which displays some local text and images. Either I've made
I have a UIWebView in my app which I want to use to display

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.