开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜