-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I'm trying to write an NSDictionary to a plist but when I open the plist no data has been written to it.
From the log my path looks correct and my code is pretty standard.
Any ideas?
NSArray *keys = [NSArray arrayWithObjects:@"key1", @"key2", @"key3", nil];
NSArray *objects = [NSArray arrayWithObjects:@"value1"…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Compare the following:
using NSUserDefaults saving it with synchronize
using NSDictionary saving it with writeToFile in the app Documents folder
What are the differences? Personally, I prefer to mantain different NSDictionary organized by topic rather than use a single NSUserDefaults.
Am I thinking…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am a .NET programmer and new to Objective C.
I am trying to make a UIPickerView which acts like a .NET dropdownlist. User sees the list of text and selects one and the selected value (which is the ID) is used in code.
I have been browsing for almost half a day trying to figure this out. I could…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there a way to remove duplicate (key-value) pairs from NSDictionary ?
EDIT:
My description was misleading, I have duplicate pairs e.g.
key1-value1
key1-value1
key2-value2
key1-value1
etc..
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Sorry if the question isn't correct, I'm very new in Objective-C.
I understand why this code throw the Warning: "warning: passing argument 1 of 'initWithObjectsAndKeys:' makes pointer from integer without"
NSDictionary *dictNames =
[[NSDictionary alloc] initWithObjectsAndKeys:
3, @"",
4…
>>> More