Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

boyplunder

macrumors regular
Original poster
Sep 8, 2008
165
0
UK
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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.