Top "Nsdictionary" questions

A member of Apple's Objective-C framework Cocoa.

How to append elements into a dictionary in Swift?

I have a simple Dictionary which is defined like: var dict : NSDictionary = [ 1 : "abc", 2 : "cde"] Now I want to add an …

swift nsdictionary
for each loop in Objective-C for accessing NSMutable dictionary

I am finding some difficulty in accessing mutable dictionary keys and values in Objective-C. Suppose I have this: NSMutableDictionary *xyz=[[…

objective-c nsdictionary enumeration nsmutabledictionary key-value
How to use NSJSONSerialization

I have a JSON string (from PHP's json_encode() that looks like this: [{"id": "1", "name":"Aaa"}, {"id": "2", "name":"Bbb"}] I …

ios objective-c json nsdictionary
How to add to an NSDictionary

I was using a NSMutableArray and realized that using a dictionary is a lot simpler for what I am trying …

iphone objective-c nsdictionary
How do I deserialize a JSON string into an NSDictionary? (For iOS 5+)

In my iOS 5 app, I have an NSString that contains a JSON string. I would like to deserialize that JSON …

ios json ios5 nsstring nsdictionary
adding multiple entries to a HashMap at once in one statement

I need to initialize a constant HashMap and would like to do it in one line statement. Avoiding sth like …

java android iphone hashmap nsdictionary
Converting NSString to NSDictionary / JSON

I have the following data saved as an NSString : { Key = ID; Value = { Content = 268; Type = Text; }; }, { Key = ContractTemplateId; Value = { Content = 65; Type = …

objective-c xcode json nsstring nsdictionary
How can I convert NSDictionary to NSData and vice versa?

I am sending NSString and UIImage using bluetooth. I decided to store both in a NSDictionary and then convert the …

iphone objective-c ios nsdictionary
convert NSDictionary to NSString

I am trying to put the content of an NSDictionary into an NSString for testing, But have no idea how …

iphone ios nsstring nsdictionary
Is there a way to iterate over a dictionary?

I know NSDictionaries as something where you need a key in order to get a value. But how can I …

ios objective-c foreach iteration nsdictionary