Top "Nsmutabledictionary" questions

NSMutableDictionary is the mutable version of NSDictionary.

Creating nested JSON string using nsmutabledictionary

I'm trying to create a json string of the below format: { "cat_id" : 4992, "brand" : "Toshiba", "weight" : { "gte":1000000, "lt":1500000 }, "sitedetails" : { "name" : "…

ios json key nsmutabledictionary
NSMutableDictionary Adding multiple objects to one key

How do I add multiple objects to same key in an NSMutableDictionary? I cannot find the right method. The setObject …

objective-c nsmutabledictionary
Best way to handle persistent Boolean in plist?

What's the best way to handle Boolean values that derive from a UISwitch setting, and are stored in an NSMutableDictionary …

iphone objective-c boolean nsmutabledictionary nsnumber
can not add item to NSMutableDictionary in swift iOS

I want to add the following items to a NSMutableDictionary but I get the following error could not find an …

ios swift nsmutabledictionary
Why NSMutableDictionary don't want write to file?

- (void)viewDidLoad { [super viewDidLoad]; if ([[NSFileManager defaultManager] fileExistsAtPath:pathString]) { infoDict = [[NSMutableDictionary alloc] initWithContentsOfFile:pathString]; } else { infoDict = [[NSMutableDictionary alloc]initWithObjects:[…

iphone ios nsmutabledictionary nsfilemanager
Observing NSMutableDictionary changes

Is it possible to observe (subscribe to) changes to values stored under different keys in an NSMutableDictionary? In my case …

objective-c nsmutabledictionary
How to make a if statement with NSNull in objective-c

I am develop a iPhone application, in which i need to use JSON to receive data from server. In the …

iphone json nsmutabledictionary nsnull
Why does NSUserDefaults fail to save NSMutableDictionary?

I’m trying to save a NSMutableDictionary with NSUserDefaults. I read many posts on the topic in stackoverflow... I also …

iphone ios xcode nsuserdefaults nsmutabledictionary
NSMutableDictionary "unrecognized selector sent to instance"

-(void)saveDictionary:(int)counter { NSString *path=[[NSBundle mainBundle] pathForResource:@"Data" ofType:@"plist"]; NSString *test = [NSString stringWithFormat:@"%d", counter]; [theDictionary …

iphone nsmutabledictionary