Is it possible to set a selector fo开发者_如何转开发r "setDoubleAction" through "Interface Builder" or it can only be done by "XCode"?
If it can be done only by "XCode" I would like to know why.
Thanks!
In IB, you set the target and single-click action at the same time. There is no way to separately set the double-click action.
You can set it using a Binding, providing you can get to the intended target that way, but this is a bit like swatting a fly with a hydraulic hammer.
The easiest way is just to set it in code.
(What editor you use has nothing to do with it.)
精彩评论