How do I apply UIAppearance Proxy properties to UILabel?

后端 未结 4 562
忘了有多久
忘了有多久 2020-11-27 20:34

I have been getting unreliable results while trying to apply UIAppearance proxy styles to the UILabel class proxy. For example, the following works as I would expect:

<
4条回答
  •  一向
    一向 (楼主)
    2020-11-27 21:22

    OK, it turns out that you cannot style any UILabel properties using the UIAppearance proxy.

    While the UILabel class conforms to the UIAppearanceContainer protocol, a check of UILabel.h shows that none of its properties are marked with UI_APPEARANCE_SELECTOR, the prerequisite for the use of UIAppearance.

    Bugger.

提交回复
热议问题