开发者

Three20 horizontal gradient

How can I make horizontal gradient for TTStye?

- (TTStyle *) myStyle: (UIControlState)state {
  return [TTShapeStyle styleWithShape:[TTRectangleShape shape] next:
          [TTLinearGradientFillStyle styleWithColor1:RGBCOLOR(60, 60, 60)
                                              color2:RGBCOLOR(30,开发者_运维技巧 30, 30) next:nil]];
}

makes Vertical gradient.

Maybe there is some tutorial on Three20 TTStyle's?


Done by copy-past code from TTLinearGradientFillStyle. Several lines changed for achieve horizontal gradient.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜