Change TabBarItem title font to bold in Swift for iOS

前端 未结 6 688
执念已碎
执念已碎 2020-12-18 05:08

I\'m trying to set the font weight of a selected tab bar item to bold font. It seems as it has no effect. Any idea what is wrong. forState: .Normal works as exp

6条回答
  •  轮回少年
    2020-12-18 05:47

    To set the TitleTextAttribute, you should use the appearance proxy like: [UIBarItem appearance]

提交回复
热议问题