【问题标题】:Three20 horizontal gradientThree20水平渐变
【发布时间】:2011-09-25 10:57:20
【问题描述】:

如何为 TTStye 制作水平渐变?

- (TTStyle *) myStyle: (UIControlState)state {
  return [TTShapeStyle styleWithShape:[TTRectangleShape shape] next:
          [TTLinearGradientFillStyle styleWithColor1:RGBCOLOR(60, 60, 60)
                                              color2:RGBCOLOR(30, 30, 30) next:nil]];
}

制作垂直渐变。

也许有一些关于 Three20 TTStyle 的教程?

【问题讨论】:

    标签: iphone objective-c ios cocoa-touch three20


    【解决方案1】:

    通过从 TTLinearGradientFillStyle 复制过去的代码来完成。更改了几行以实现水平渐变。

    【讨论】:

      猜你喜欢
      • 2017-09-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-19
      • 2012-10-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多