Changing width of UISlider programmatically?
I am creating a UISlider
programmatica开发者_JS百科lly. When initializing it, I use initWithFrame
and pass in CGRect
and it doesn't have any effect. I thought maybe I can change it after I initialize but still nothing...I can change it via I.B. so there's got to be a way to change it's width.
You definitely can specify the width of the slider by using initWithFrame or changing the bounds of it. There has to be something else going on here that's preventing it from working.
精彩评论