I have a NSMutableArray. When I use NSLog, this is the output:
2012-12-15 17:58:28.849 Splash-it[504:907] (
"Open House New York",
"Boston Athletic Association",
"Autofest Tanzania"
),
How can I get the I get an NSString with one of these titles (considering that the titles will change, I think I need to use the objectAtIndex but I don’t think it will work in this case)?
e.g.
NSString = @"Boston Athletic Association"
The
objectAtIndexworks perfectly well with mutable arrays. Thus, using zero-based index, to get the second object in the array, you would do:With newer versions of Xcode, you can also use this syntax: