Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 三个20水平梯度_Iphone_Objective C_Ios_Cocoa Touch_Three20 - Fatal编程技术网

Iphone 三个20水平梯度

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)

如何为TTStye制作水平渐变

- (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复制过去的代码来完成的。为实现水平梯度,更改了几行