문제

Im trying to implement a custom control. Im looking to develop a custom where it is an 7 shape, and and the handle starts in the vertical position, at the top of the 7. Is it possible to override the drawRect of UISlider or is it easier to create a completely custom UIControl? The desired effect is to have all the same functionality of the UISlider but just a different shape. I dont have much experience with making custom objects so any tips or direction is greatly appreciated.

도움이 되었습니까?

해결책

Don't bother subclassing UISlider. I'd start by recreating UISlider so you can get the hang of creating custom controls, and then I'd switch to your custom shape after you've managed to create a functioning slider.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top