Add alternated gradients and fallback drawing.

This commit is contained in:
Aditya Nrusimha
2012-10-16 20:23:24 -07:00
parent 4372f9ed01
commit bbab47c988
3 changed files with 53 additions and 11 deletions
@@ -33,7 +33,7 @@
// changed to selected, we draw an bottom-up gradient from the
// highlight color to the background color with the selection style.
self.drawSelectedBackground = gradientBackgroundWithAngledPattern(TUITableViewCellGradientPatternBackgroundToHighlight,
self.selectionStyle, 90.0f);
TUITableViewCellStateSelected, 90.0f);
// Instead of using a TUILabel or TUITextField, let's take a little
// course in the art of using a TUITextRenderer. It acts as a simple