I am having trouble getting an NSString property from an array. I have an NSArray composed of an object called JSMessage. Inside of this object is a string called sender I am trying to retrieve. At the moment, I am only trying to print it to the log. Here is the code I am trying:
NSLog(@"%@",[[self.messages [objectAtIndex:indexPath.row]].sender ]);
I get an error about my brackets and another one telling me objectAtIndex is an undeclared identifier.
What am I doing wrong?