I have some code like this:
for(int i = 0; i<5; i++) {
self.objecti = someObject;
}
I want to select an object based on i
, so if i=1
then my code executes self.object1=someObject;
Is it possible to create a string of the object name and then access it this way?