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

thomasjt

macrumors newbie
Original poster
Apr 16, 2009
23
0
Hi,

I have a view which is created with details which depend on which button a user clicks. So, say the user clicks a button named 'Tom', I would like the navbar title to be Details of Tom...

I've tried this:

Code:
detailView.title = @"Details of %@", whichButton.titleLabel.text;

Where whichButton is the button that the user clicked on. Unfortunately, all this shows me is 'Details of %@' in the navbar title.

Any ideas?
 
imageWithContentsOfFile needs a path:

Code:
[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"yourImage" ofType:@"png"]];

You might prefer imageNamed if you want to just hand it a string.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.