- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- (void)updateTableHeaderOfOrangeColor:(BOOL)reallyOrange andTitle:(NSString *)title
{
table.tableHeaderView = reallyOrange ? orangeTableHeaderView : marineTableHeaderView;
(reallyOrange ? orangeTableHeaderLabel : marineTableHeaderLabel).text = title;
UIImage *tileImage = [UIImage imageNamed:(reallyOrange ? @"tapeWideTile.png" : @"tapeWideTileBlue.png")];
table.backgroundColor = [UIColor colorWithPatternImage:tileImage];
}
guest 23.06.2012 16:37 # 0
Venomous 23.06.2012 17:07 # +1
ну и одно и то же условие несколько раз тернарным делать странно