It would be much easier to maintain by going with the latter: having all of the buttons point to one IBAction
, and the IBAction
plays a given note based on which button was pressed rather than having a one-for-one relationship between buttons and IBActions
.
2
solved How to create a piano-style interface on an iPhone? [duplicate]