+#ifdef USE_IPHONE
+
+- (void)setValue:(float)v animated:(BOOL)a
+{
+ return [super setValue:[self transformValue:v] animated:a];
+}
+
+
+/* Draw the thumb in the right place by also inverting its position
+ relative to the track.
+ */
+- (CGRect)thumbRectForBounds:(CGRect)bounds
+ trackRect:(CGRect)rect
+ value:(float)value
+{
+ CGRect thumb = [super thumbRectForBounds:bounds trackRect:rect value:value];
+ if (inverted)
+ thumb.origin.x = rect.size.width - thumb.origin.x - thumb.size.width;
+ return thumb;
+}
+
+#endif // !USE_IPHONE
+
+
+