
A slider is a good choice when you know that users think of the value as a relative quantity, not a numeric value. NewLayer.backgroundColor = UIColor.redColor(). Use a slider when you want your users to be able to set defined, contiguous values (such as volume or brightness) or a range of discrete values (such as screen resolution settings).

NewLayer.backgroundColor = UIColor.redColor().CGColor Text2TextContent.drawInRect(CGRectMake(text2Rect.minX, text2Rect.minY + (text2Rect.height - text2TextHeight) / 2, text2Rect.width, text2TextHeight), withAttributes: text2FontAttributes) To show a slider completely in the paint area you need to make the value area smaller by twice the slider diameter So your x number cant be the value nor a scaled value but x diameter + factor value and reverse TaW at 9:57 1 Make the width of the silder pictueBox.width - diameter of the circle and make it start at x radius. Alternatively, to compile and run the example yourself, consult the example index.
SLIDER CONTROL IN PAINTCODE DOWNLOAD
Let text2TextHeight: CGFloat = text2TextContent.boundingRectWithSize(CGSizeMake(text2Rect.width, CGFloat.infinity), options: NSStringDrawingOptions.UsesLineFragmentOrigin, attributes: text2FontAttributes, context: nil).size.height Click the Launch button to run SliderDemo using Java Web Start ( download JDK 7 or later ). Let text2Style = faultParagraphStyle().mutableCopy() as! NSMutableParagraphStyle

