2011-09-25 2 views
0

어떻게 TTStye에 대해 가로 그라데이션을 만들 수 있습니까?Three20 가로 그라디언트

- (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에 대한 자습서가 있습니까?

답변

0

TTLinearGradientFillStyle의 복사 - 이전 코드로 완료되었습니다. 수평선 그라데이션을 달성하기 위해 여러 행이 변경되었습니다.