生成透明图片
CGSize s=CGSizeMake(1, 1);
UIGraphicsBeginImageContextWithOptions(s, 0, [UIScreen mainScreen].scale);
UIRectFill(CGRectMake(0, 0, 1, 1));
UIImage *img=UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
添加图片,大按钮就去掉了,这个img置为空是去不掉的
[_slider setThumbImage:img forState:UIControlStateNormal];