Я получаю ненадежные результаты при попытке применить стили прокси-сервера UIAppearance к прокси-серверу UILabel. Например, следующие работы, как я ожидал бы:
[[UILabel appearance] setFont:[UIFont fontWithName:SOME_FONT size:SOME_SIZE]];
[[UILabel appearance] setShadowColor:[UIColor blackColor]];
Настройка textColor не работает, однако:
[[UILabel appearance] setColor:[UIColor greenColor]];
действительно работает. Вид. Он несколько ненадежный и вызывает игнорирование любых вызовов, связанных с конкретным экземпляром, на setTextColor:
.
Каков правильный способ применения стилей UIAppearance к UILabel?