|
|
#1 |
|
Setting navbar title with variable
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; Any ideas? |
|
|
|
0
|
|
|
#2 |
|
|
0
|
|
|
#3 | |
|
Quote:
Code:
UIImage *myImage = [[UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"%@", name]]]; Cheers, Tom |
||
|
|
0
|
|
|
#4 |
|
imageWithContentsOfFile needs a path:
Code:
[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"yourImage" ofType:@"png"]]; |
|
|
|
0
|
|
|
#5 |
|
Sweet, that was a great help. Thanks very much
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| applescript studio, set button title issue.... | butteryak | Mac Programming | 0 | May 14, 2011 02:52 PM |
| How can I set popover title bar color to the same as default navigationBar? | mikezang | iPhone/iPad Programming | 1 | Jan 3, 2011 05:40 AM |
| Set Navigation.Title before http url sent | benhowdle89 | iPhone/iPad Programming | 5 | Oct 24, 2010 04:40 AM |
| Navbar title? | UberMonjie | iPhone/iPad Programming | 5 | Feb 18, 2009 10:21 AM |
| setting UINavigationItem title programatically | Xentarios | iPhone/iPad Programming | 0 | Jul 29, 2008 10:01 PM |
All times are GMT -5. The time now is 01:18 AM.







Linear Mode

