开发者

How to create a custom slider with custom selected and unselected images?

开发者 https://www.devze.com 2023-02-27 20:48 出处:网络
I need to create a slider which should have custom images for following slider parts: left round corner image.

I need to create a slider which should have custom images for following slider parts:

  1. left round corner image.
  2. left part image which is selected part.
  3. right part image which is unselected or remaining part.
  4. right corner image.
  5. Thumb image.

Also i want to increase开发者_JAVA百科 the thickness of the slider. Please give me some suggestion or share some code snippets.

Thanks,


Look at setThumbImage:forState to change thumb image.

minimumValueImage and maximumValueImage for the images on the left and right hand side of the slider.

The track images can also be manipulated.

See "Customizing the slider's appearance" at http://developer.apple.com/library/ios/#documentation/uikit/reference/UISlider_Class/Reference/Reference.html

0

精彩评论

暂无评论...
验证码 换一张
取 消