I have a button:
- (UIButton *)subwayABBtn
{
if (!_subwayABBtn)
{
_subwayABBtn = [UIButton buttonWithType:UIButtonTypeCustom];
_subwayABBtn.tag = ADRESS_SUBWAY_BTN_TAG;
[_subwayABBtn setTitle:@"Метро" forState:UIControlStateNormal];
[_subwayABBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[self.contentView addSubview:_subwayABBtn];
}
return _subwayABBtn;
}
How can I change the title of the button with a tag from another class? I need to change the title of the button.