Skip to content

Subclass UISlider #1

Description

@stuartjmoore

Since it's a slider, subclassing UISlider would allow you to use it in other libraries. I've think I've done it with (plus some other obvious changes):

#pragma mark - UISlider Override

- (float)value
{
  return (float)self.angle;
}

- (UIImage*)currentThumbImage
{
  return nil;
}
- (UIImage*)currentMaximumTrackImage
{
  return nil;
}
- (UIImage*)currentMinimumTrackImage
{
  return nil;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions