[Solved] I want to get particular key wise value without For Loop use [closed]


You can get it as :

 NSString *string=yourDict[@"WIDTH"];

Or,

NSString *string=[yourDict objectForKey:@"WIDTH"];

Check NSDictionary Documentation and new Objective-C literals

And please please please Start learning Objective-C, may be from Apple Documentation.


Edit:

As you changed your question and added “Setting:”.

Now you need to use :

NSString *string=yourDict[@"Setting"][@"WIDTH"];

EDIT 1:

I think you have array of objects. Each object contains set of WIDTH, LINEBREAK etc.

NSString *string=yourDict[@"Setting"][0][@"WIDTH"];

6

solved I want to get particular key wise value without For Loop use [closed]