How to change size of thumb image of UISlider programmatically
问题 I would like to make the custom UISlider, something like this |o----------| -> |-----O------| -> |------------〇| the thumbImage will be small at the minimum value, it will increase the size during the slider value increase, otherwise it will decrease. is anyone know how to do it? 回答1: You can use this code: + (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize { //UIGraphicsBeginImageContext(newSize); UIGraphicsBeginImageContextWithOptions(newSize, NO, 0.0); [image