UIImage *minTrack = [[[UIImage imageNamed:@"图片"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]
// resizableImageWithCapInsets:UIEdgeInsetsMake(0, 22, -4, 22)];
// [slider setMinimumTrackImage:minTrack forState:UIControlStateNormal];
定制好UIEdgeInsetsMake伸缩范围即可不变形
网友评论