How can I get the first element in an NSDictionary?
Posted
by Sheehan Alam
on Stack Overflow
See other posts from Stack Overflow
or by Sheehan Alam
Published on 2010-04-22T22:42:45Z
Indexed on
2010/04/22
22:43 UTC
Read the original article
Hit count: 175
I have an array of NSDictionaries. How can I pull out the first element in the dictionary?
NSArray *messages = [[results objectForKey:@"messages"] valueForKey:@"message"];
for (NSDictionary *message in messages)
{
STObject *mySTObject = [[STObject alloc] init];
stID = mySTObject.stID;
}
© Stack Overflow or respective owner