If I have 100 UITextFields,
myTextfFeld1
, myTextField2
...and so on until mytextField100
...and they all perform the same action, say change myTextField1.alpha = 0.4
to myTextField1.alpha = 1
.
Rather than write this out 100 times is there a more efficient way of doing this
I had a look here iOS looping over an object's properties and adding actions but it still means adding all the UITextFields
into the array.