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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:00:26+00:00 2026-05-22T18:00:26+00:00

I have a URL and I will show the URL inside a ModalViewController. I

  • 0

I have a URL and I will show the URL inside a ModalViewController. I would like to set the title of this URL in the navigation bar.

Inside the ModalViewController I have a UIWebView to display the site. Is there a way to extract the title of this site via UIWebView? Did a bit of research and it seems that I would like to use some javascript inside the (void)webViewDidFinishLoad:(UIWebView *)webView
Not sure though how it works.

  • 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-22T18:00:26+00:00Added an answer on May 22, 2026 at 6:00 pm

    Try this:

    - (void)webViewDidFinishLoad:(UIWebView *)webView
    {
        NSString* title = [webView stringByEvaluatingJavaScriptFromString: @"document.title"];
        navbar.title = title;
    }
    

    Taken from: http://blog.mcohen.me/2008/12/12/getting-the-title-of-a-web-view-in-cocoa-touch/

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

Sidebar

Related Questions

I have URL scheme for my blog like this: http://www.example.com/%YEAR%/%MONTH%/%CATEGORY%/%POST_TITLE%/ Now i want to
I have a url string like this: http://www.google.com/cse?cx=017840637368510444960:ny1lmky7r-0&client=google-csbe&output=xml_no_dtd&q=simon+g I need to send this url
I have an url like this: http://www.w3schools.com/PHP/func_string_str_split.asp I want to split that url to
I have an app that will display web pages within a UIWebView. The pages
I have a textbox where user will enter the url of the image :
I have an aspx page,where the user will enter a valid image url(ex :
I have a scenario where a user will have access to a one-time-url. When
I have URL like: http://example.com#something , how do I remove #something , without causing
I am have buttons like this: <button type=button class=img img_button_bla onclick=...>Bla!</button> The img class
I would like to open an Ext.Window in ExtJS , that will open an

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.