Basically my view controller has 49 different instance variables of class CircleView (called circleView1, circleView2, ..., circleView49). The CircleView class is a simple subclass of UIImageView and basically returns a circle picture when initialized.
Here is what I am trying to do:
In my implementation for the view controller, I want to be able to select the instance variable using a string, for example let's say I generate a random integer i between 1 and 49, lets say it's 5. I would like to be able to build an NSString using something like [NSString stringWithFormat @"circleView%i",i]; and somehow reach the actual circleView5 instance variable. Is this possible?
P.S. I'm looking for something in the lines of NSClassFromString, but which applies to instance variables or objects.