UICustomSlider.m 695 B

1234567891011121314151617181920212223242526
  1. /*
  2. =======================================================================================
  3. Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. All Right Reserved.
  4. This file is part of the DOOM Classic iOS v2.1 GPL Source Code.
  5. =======================================================================================
  6. */
  7. #import "UICustomSlider.h"
  8. @implementation UICustomSlider
  9. - (CGRect)trackRectForBounds:(CGRect)bounds {
  10. UIImage* trackImage = [self minimumTrackImageForState:UIControlStateNormal];
  11. CGFloat trackImageHeight = trackImage.size.height;
  12. return CGRectMake(bounds.origin.x, bounds.origin.y, self.bounds.size.width, trackImageHeight);
  13. }
  14. @end