Skip to content

how can look Circleslider ? #9

@J-Arji

Description

@J-Arji

hello
how can look FoodQSlider ?

   @IBOutlet weak var FoodQSlider      : UIView!

private func buildCircleSliderFoodQSlider() {
        self.circleSlider = CircleSlider(frame: self.FoodQSlider.bounds, options: self.sliderOptions)

        let delay = 0.1 * Double(NSEC_PER_SEC)
        let time  = dispatch_time(DISPATCH_TIME_NOW, Int64(delay))
        dispatch_after(time, dispatch_get_main_queue(), {
            self.circleSlider.value = Float(self.reviwesRoundTwo[0])
        })
        self.FoodQSlider.addSubview(self.circleSlider!)
        self.valueLabel = UILabel(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
        self.valueLabel.textAlignment = .Center
        self.valueLabel.center = CGPoint(x: CGRectGetWidth(self.circleSlider.bounds) * 0.5, y: CGRectGetHeight(self.circleSlider.bounds) * 0.5)
        self.valueLabel.text = String(reviwesRoundTwo[0])
        self.circleSlider.addSubview(self.valueLabel)
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions