Increase UISlider height without using image

断了今生、忘了曾经 提交于 2019-12-08 07:07:05

问题


I want to increase UISlider height using color or any other way. I do not want to use image. I do not want to set setMaximumTrackImage & setMinimumTrackImage. How can i implement this ?


回答1:


If you don't want to subclass, you can apply scale transform to the slider

slider.transform = CGAffineTransformMakeScale(2.0f, 2.0f);


来源:https://stackoverflow.com/questions/36663832/increase-uislider-height-without-using-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!