Iphone 三个20水平梯度
如何为TTStye制作水平渐变Iphone 三个20水平梯度,iphone,objective-c,ios,cocoa-touch,three20,Iphone,Objective C,Ios,Cocoa Touch,Three20,如何为TTStye制作水平渐变 - (TTStyle *) myStyle: (UIControlState)state { return [TTShapeStyle styleWithShape:[TTRectangleShape shape] next: [TTLinearGradientFillStyle styleWithColor1:RGBCOLOR(60, 60, 60)
- (TTStyle *) myStyle: (UIControlState)state {
return [TTShapeStyle styleWithShape:[TTRectangleShape shape] next:
[TTLinearGradientFillStyle styleWithColor1:RGBCOLOR(60, 60, 60)
color2:RGBCOLOR(30, 30, 30) next:nil]];
}
使垂直渐变
也许有一些关于三个20 TTStyle的教程?是通过从TTLinearGradientFillStyle复制过去的代码来完成的。为实现水平梯度,更改了几行