We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When i set a backgroundImage in self.segmentedControl.thumb, this happens.
The text was updated successfully, but these errors were encountered:
I looked inside SVSegmentedThumb.m, and by trial and error, i managed to get the "correct" subtrahend for the height of the imageView:
- (UIImageView *)thumbBackgroundImageView { if(!_thumbBackgroundImageView) { _thumbBackgroundImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5+self.segmentedControl.thumbEdgeInset.left, self.segmentedControl.thumbEdgeInset.top, self.bounds.size.width-10-self.segmentedControl.thumbEdgeInset.left-self.segmentedControl.thumbEdgeInset.right, self.backgroundImage.size.height - 3)]; _thumbBackgroundImageView.backgroundColor = [UIColor clearColor]; [self insertSubview:_thumbBackgroundImageView atIndex:0]; self.clipsToBounds = NO; self.segmentedControl.clipsToBounds = NO; } return _thumbBackgroundImageView; }
Sorry, something went wrong.
Did you try playing around with thumbEdgeInset?
thumbEdgeInset
Also forgot to mention that this is by design so implementations like this one can be made possible:
No branches or pull requests
When i set a backgroundImage in self.segmentedControl.thumb, this happens.
The text was updated successfully, but these errors were encountered: