I am using a custom UISwitch
Control called DVSwitch which is written in Objective-C for a Swift/ Xcode6 project. I need to call its -setPressedHandler:
Method and having a hard time converting it to Swift. Can anyone please show me how to write the code block below in Swift.
[switcher setPressedHandler: ^(NSUInteger index) {
NSLog(@"Did switch to index: %lu", (unsigned long)index);
}];