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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:46:20+00:00 2026-06-03T23:46:20+00:00

I have a bottom toolbar button that contains a button which opens a UIWebView

  • 0

I have a bottom toolbar button that contains a button which opens a UIWebView *webView

- (IBAction)rebateWebView:(id)sender {
       [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
}

Now, after the webView loads I want to change the title of the button and when the button is tapped again I want the webView to disappear or, in essence, reload the firstviewcontroller.

I know how to change the title and have that working. My biggest problem is dropping the webView. I just can’t wrap my head around it.

  • 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-03T23:46:22+00:00Added an answer on June 3, 2026 at 11:46 pm

    [self.webView removeFromSuperView]; will remove your webView from the super view, which is almost certainly your view controller’s self.view.

    Then depending on whether you still need it or not you may want to nil it out and/or release it if you are not using ARC.

    If you are trying to “reload” the view controller instead (which is completely different from dropping self.webView, you can call [self viewWillDisappear:NO]; [self viewWillAppear:NO]; if what you need is in those methods.

    Edit

    Jim’s suggestion is also valid if you may want to re-show that self.webView in the future:

    self.webView.hidden = YES to hide
    self.webView.hidden = NO to show

    • 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
I'm working on adding Ext.Panel with the docked bottom toolbar which contains a button
I have an App that has a toolbar at the bottom of the screen
I have a grid with paging toolbar at the bottom and a 'Load' button
(resolved: see bottom) I have the following code snippet: Protected Sub SqlDataSource1_Inserted(ByVal sender As
I have a tableview that occupies only the bottom third of my view. I
I have a table on near the bottom of the page, which I want
I have a UINavigationController that has a UIToolbar on the bottom. Several of my
I have a Toolbar whose ItemSource is a collection of toolbarItems which contain the
I have a panel that is located at the bottom of the page. Inside

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.