So when I try to connect a UIGestureRecognizer's target-action to the handleGesture function I get an unrecognized selector exception.
protocol SomeProtocol: class {
func handleGesture(gesture: UILongPressGestureRecognizer)
}
extension SomeProtocol where Self: UITableViewController {
func handleGesture(gesture: UILongPressGestureRecognizer) { . . . }
}
class MasterViewController: UITableViewController, SomeProtocol {
var gesture: UILongPressGestureRecognizer = UILongPressGestureRecognizer(target: self, action: "handleGesture:")
}
UPDATE: Bug filed: 22611665
UPDATE (Jan. 8, 2016): bug report (22611665) was closed as a duplicate of another issue (21552427) whose status is open at this time.