[swift-users] ObjC vs Swift action selectors
David Catmull
davidcatmull at gmail.com
Tue Dec 6 10:54:50 CST 2016
I have a unit test in which I verify that a view controller is correctly
validating items in a context menu. I converted the view controller class
to Swift, keeping the selector names the same, while the test is still in
ObjC. The test now doesn't work because the selector created in ObjC as
@selector(action:) somehow isn't matching Swift's
#selector(ClassName.action(_:)). Do I have to rewrite my test in Swift for
this to work?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20161206/9f1fa5d9/attachment.html>
More information about the swift-users
mailing list