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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:48:19+00:00 2026-05-30T09:48:19+00:00

I have a storyboard with a UIViewController. Inside this view, I’ve placed a custom

  • 0

I have a storyboard with a UIViewController. Inside this view, I’ve placed a custom UIWebView. In the code in my custom webview I would like to change the title in navigation control of its outer UIViewController.

I’ve tried to call the superview in the webview, but that just gives me an UIView. How can I, from this webview, change the title in the UIViewController?

  • 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-30T09:48:20+00:00Added an answer on May 30, 2026 at 9:48 am

    Here’s what you do:

    1. In the UIViewController, I assume that you’ve got some code setup to represent this UIWebView? Add the UIWebView as a property of the UIViewController (Don’t forget the IBOutlet part!)

      @property (nonatomic, retain) IBOutlet UIWebView *webView;

    2. In the storyboard, link the UIWebView to the UIViewController.

    3. Make the UIViewController a UIWebViewDelegate (see documentation here)

    4. In the UIViewController, implement the webViewDidFinishLoad: method. In this method, the UIWebView will let the UIViewController know when it’s done loading the page. You can then assign the title of the webview to the UINavigationController’s title with this code:

      NSString *pageTitle=[self.webView stringByEvaluatingJavaScriptFromString:@"document.title"];
      [self.navigationItem setTitle:pageTitle];

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

Sidebar

Related Questions

I have a custom UIViewController in Interface Builder (in my storyboard) and I want
I would like to have a storyboard started, whenever the value of MyCounter changes.
I have a storyboard like the following Duration=0:0:1 Completed=DeviceExplorer_Completed> The animation for some reason
My current storyboard layout UIViewController | +- UIView (MyView) in MyView I have the
I don't seem to get this SIGABRT I keep getting. I have this storyboard
Right now any new UIViewController added to my storyboard needs to have a class
I have a storyboard setup as a Tabbed Application with first view controller containing
I have dragged a UIImageView onto the UIViewController window in storyboard. I used the
Let's say I have this storyboard: <Storyboard x:Key=sbScale> <DoubleAnimation Duration=0:0:0.5 Storyboard.TargetProperty=LayoutTransform.ScaleX To=2.0/> </Storyboard> If
I'm searching for a way to have a custom AnimationClock. Every Storyboard has it's

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.