UIBarButtonItem setTintColor не работает для темных цветов

Я устанавливаю tintColor для UIBarButtonItem . Это работает, пока цвет яркий, как только я пытаюсь установить его на darkGrayColor , ничего не происходит, фактически он меняет оттенок на белый! Но если я изменил цвет на redColor , тогда он заработает ... Что здесь происходит?

UIBarButtonItem *penButton = [_toolBar.items objectAtIndex:3];
UIBarButtonItem *crossButton = [_toolBar.items objectAtIndex:4];

//This actually sets the tint to white not gray, which is odd?
[penButton setTintColor:[UIColor darkGrayColor]]; 
[crossButton setTintColor:[UIColor redColor]]; //Red is fine, as is green etc
8
задан Chris 9 January 2012 в 23:40
поделиться