How do I resolve “ambiguous use of” compile error with Swift #selector syntax?
[NOTE This answer was originally formulated under Swift 2.2. It has been revised for Swift 4, involving two important language changes: the first method parameter external is no longer automatically suppressed, and a selector must be explicitly exposed to Objective-C.] You can work around this problem by casting your function reference to the correct method … Read more