I have a NSObject
class which's name is test.
class test
has 3 property. Name
, age
, id
;
I have 3 Objects in test class. s
, b
, c
.
I am putting all of the objects to the array with: NSArray *ary = [NSArray arrayWithObjects:@"a", @"b", @"c", nil];
I am trying to access to the data of property in that array. Which means I have to read, write the property of the object in array in the loop (for loop or while loop).
I found a lot of materials on the internet. The method that I was close to do was:
[[ary objectAtIndex:0] setName:@"example"];
This method was working with setters and getters. But it did give a horrible error. Is there any "WORKING" method to do it?
Thanks...