How to change UIBarButtonItem Title - iPhone SDK
- by user340226
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