我有字典内容数组,但我无法获取字典值。下面是字典格式,字典中的“resdata”和时间戳是字典键值。所以我需要知道如何获取时间戳值。
<__NSArrayM 0x89426d0>(
{
resData = (
{
timestamp = "2012-04-09 13:54:08 +0000";
}
);
seqCounter = 101;
}
here is the source code
for (int i = 0; i < [self.gluClkDetailArray count]; i++)
{
NSMutableDictionary *mDict = [self.gluClkDetailArray objectAtIndex:i];
NSDate *mDate = [[mDict objectForKey:@"resData"] objectForKey:@"timestamp"];
NSLog(@"NSDATE-----%@", mDate);
}
In above code the dictionary value is 0.
Thanks in advance