Difference between selector and closure

Hi,

I found these two approaches are quite similar in terms of functionality, can you explain the difference between these two? In my opinion, they are all approach to call a method to respond users action. Thanks

@jiang Selectors implement the target action pattern by default. This can also be done with closures using workarounds:

I hope it helps!

This topic was automatically closed after 166 days. New replies are no longer allowed.