【问题标题】:Three20 TTLauncherItem style三个 20 TTLauncherItem 样式
【发布时间】:2011-01-14 20:11:33
【问题描述】:

如何将来自 Three20 库的 TTLauncherItem 的文本颜色设置为黑色?我看到样式属性是NSString

我正在尝试分配这样的内容:

TTTextStyle *aux = [TTTextStyle styleWithFont:[UIFont boldSystemFontOfSize:12] color:RGBCOLOR(80, 80, 80) minimumFontSize:12 shadowColor:nil shadowOffset:CGSizeZero next:nil];

我已经看到有一些示例将样式子类化并为按钮覆盖它,但没有更简单的解决方案,例如将我想要的样式/颜色分配给 TTLauncherItem

【问题讨论】:

    标签: iphone objective-c three20


    【解决方案1】:

    请参阅以下关于正确实现TTStyleSheet 的教程:

    Three20 Stylesheets iPhone Tutorial

    另请参阅以下 SO 答案:

    How to change the color of the title in TTLauncherItem?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多