Change text color of WKInterfaceLabel using NSMutableAttributedString

谁说胖子不能爱 提交于 2019-12-04 11:49:47

Could you post your full interface controller and the row controller? It's very difficult to tell what could be wrong. What you are doing at the moment looks fine. With that said, there are two things that may help here.

First, make sure not to try to set this in init or awakeWithContext. You need to set this in willActivate. Otherwise you will get some odd behavior.

Second, you need to set this when the interface controller is visible. Otherwise the change may not get picked up.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!