I am going to addObject of 8 UIImageView * to a NSMutableArray. Each UIImageView is User Interaction Enabled.
When a user touches one of the UIImageViews, what is the best way to recall the index position of the selected UIImageView' in theNSMutableArray`?
I can imagine:
- sub-class
UIImageViewand add aNSUIntegerindex attribute - traverse the
NSMutableArrayand compare eachUIImageView *pointer
Is there an better alternative?