Single IBAction for multiple UIButtons versus single IBAction for single UIButton
- by Miraaj
While using story-board there are two different approaches which my team mates follow:
Approach 1: To bind unique action with each button, ie:
Done button - binded to - doneButtonAction
Cancel button - binded to - cancelButtonAction
OR
Approach 2: To bind single action to multiple buttons, ie:
Done button - binded to - commonButtonAction …