Suppose I have a piece of code like this:
Now suppose that I want to access the variable in JohnDoe.friends whose name begins with the letter J. How do I do that?
Code:
Person *JohnDoe;
Person *JaneDoe;
Person *RichardRowe;
JohnDoe.friends = [NSArray arrayWithObjects:JaneDoe,RichardRowe];
Now suppose that I want to access the variable in JohnDoe.friends whose name begins with the letter J. How do I do that?
Last edited: