-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hello
Coud you please help how to implement the colorWheelDidChangeColor method in swift 2?
How do i set the delegate to self? That doesn't work: cw!.delegate = self
I tried it with this code:
var cw: ISColorWheel?
cw = ISColorWheel(frame:CGRectMake(size!.width / 2 - wheelSize!.width / 2, size!.height * 0.1, wheelSize!.width, wheelSize!.height))
cw!.continuous = true
self.view.addSubview(cw!)
And the action method:
func colorWheelDidChangeColor(colorWheel: ISColorWheel) {
view.backgroundColor = colorWheel.currentColor()
}
Thank you for your help.
Simon
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels