ios - How to customise UISlider height -


i have project in have customise uislider element. wondering if knows how change, or possible change height of uislide bar line.

i tried don't work:

let custombounds = cgrect(origin: bounds.origin,                            size: cgsize(width: bounds.size.width, height: 15.0)) feedbackslider.trackrectforbounds(custombounds) 

thanks

i hope want edit in storyboard, , line size, use in custom uislider

class customslide: uislider {       @ibinspectable var trackheight: cgfloat = 2       override func trackrectforbounds(bounds: cgrect) -> cgrect {          //set bounds here          return cgrect(origin: bounds.origin, size: cgsizemake(bounds.width, trackheight))           } } 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -