Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom UI slider , Thumb image size issue

As I'm making a custom slider , Every thing is working fine . As I have an thumb image having width and height of 30x70. But when i implement the image it change its orientation by itself and displaying in 70x30 .

I tried changing the image also but the Thumb slider comes in 70x30. I want to show image in vertical but it displays in horizontal in UISlider .

Can any one help?

 [self setThumbImage:[UIImage imageNamed:@"slider.png"] forState:UIControlStateNormal];
like image 258
Prateek sharma Avatar asked Jan 15 '23 08:01

Prateek sharma


1 Answers

If you want change UISlider appearance then use below method
[[UISlider appearance] setThumbImage:[UIImage imageNamed:@"slider.png"] forState:UIControlStateNormal];

like image 194
bhavya kothari Avatar answered Jan 25 '23 19:01

bhavya kothari