How to change UIBarButtonItem Title - iPhone SDK
Posted
by user340226
on Stack Overflow
See other posts from Stack Overflow
or by user340226
Published on 2010-05-13T11:51:16Z
Indexed on
2010/05/13
11:54 UTC
Read the original article
Hit count: 479
Hi
Can anyone help me in that I am only trying to change the Title on an UIBarButtonItem from a different class.
My code is:
-(IBAction)spanishPush {
SafetyTalks *bbiTitle= [[SafetyTalks alloc]init];
bbiTitle.bbiOpenPopOver.title = @"Spanish";
}
SafetyTalks = the class I am trying to reference bbiOpenPopOver = the UIBarButtonItem.
I can change the Title when in the SafetyTalks class by simple:
bbiOpenPopOver.title = @"Talk Topics";
but cannot do it when I am out of that class.
Please help.
Andy
© Stack Overflow or respective owner