Combine webview with drill-down entry name

Discussion in 'iOS Programming' started by boyplunder, Jan 7, 2010.

  1. boyplunder macrumors regular

    boyplunder

    Joined:
    Sep 8, 2008
    Location:
    UK
    #1
    Hi all,

    I've worked very hard over the last year learning, which I have enjoyed immensely, but every so often I come across something I'm trying to do and just can't get it. I have read through a fair bit of the developer refs on this subject, but it's just not going in.

    I'm working on a new app that is pretty much a straight-forward drill-down list with a detail view, but the detail view has a tabbar that either shows the text description or a related webview. None of this has been a problem, but I want to combine the URL with the name of the detail view to show a specific webpage in the webview.

    Code:
    - (void)awakeFromNib
    {
    	[website loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.website.com"]]];
    }
    Here is my detail view name:
    Code:
    // Set the title of the view to the term's name
    	self.termView.title = [term name];
    The webview is pretty standard and I would really appreciate any help on combining these two elements. Even if you could just point me to the right references on the developer portal.
     
  2. boyplunder thread starter macrumors regular

    boyplunder

    Joined:
    Sep 8, 2008
    Location:
    UK
    #2
    Not sure my main entry explained things well enough. Just to clarify. I am trying to end up with:

    http://www.website.com/termname

    I have set up an NSString like so:
    NSString *pageName = termView.title;

    and then tried to combine the pageName with the URL line, and that's where I am getting it wrong.
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State

Share This Page