任何人都可以帮助我,因为我只是想从不同的类更改 UIBarButtonItem 上的标题。
我的代码是:
- (IBAction) spanishPush {
SafetyTalks *bbiTitle = [[SafetyTalks alloc] init];
bbiTitle.bbiOpenPopOver.title = @"Spanish";
}
SafetyTalks = 我试图引用的类 bbiOpenPopOver = UIBarButtonItem。
在 SafetyTalks 类中,我可以通过简单的方式更改标题:
bbiOpenPopOver.title = @"Talk Topics";
但是当我不在那个班级时就不能这样做。
请帮忙。
安迪