This is my code:
//elementsValues is type of NSDictionary. currentElementValue is type of NSString.
//resultArray is type of NSArray.
//elementName = [[NSString stringWithFormat:@"SignOnResult"];
[self.elementsValues setObject:self.currentElementValue forKey:elementName];
[self.resultArray addObject:self.elementsValues];
NSLog(@"%@",[resultArray valueForKey:@"SignOnResult"]);
The output i get is printed in between ” “. So does NSDictionary give output always in ” ” ?
I dont want the string in ” “.
You are doing wrong for calling
valueForKey:withresultArrayinstance it will return you the emptyNSArray,Try to change as
Here
dictionaryIndexis the integer type and point the valid index and dictionary object in yourresultArray.