[MAPSME-4971] [ios] Updated cian title in search categories.

This commit is contained in:
Ilya Grechuhin 2017-07-24 17:19:32 +03:00 committed by Roman Kuznetsov
parent da7362e943
commit 7f92f1d568

View file

@ -27,16 +27,17 @@ extern NSString * const kCianCategory;
- (void)setCategory:(NSString *)category
{
UILabel * label = self.label;
label.text = L(category);
label.textColor = [UIColor blackPrimaryText];
self.icon.mwm_name = [NSString stringWithFormat:@"ic_%@", category];
if ([category isEqualToString:kCianCategory])
{
label.text = L(@"real_estate");
self.adIcon.hidden = NO;
self.adIcon.mwm_name = @"logo_cian";
}
else
{
label.text = L(category);
self.adIcon.hidden = YES;
}
}