ios - Changing/Adding the key/parent name of a dictionary in plist -
i attempting add together new dictionary plist. plist contains number of dictionaries names have set (rather 'item 0', 'item 1' etc). i'm unable work out how add together new dictionary name/key want set array of info i'm pulling server attributes (strings) of dictionary same information. possible? if so, how? many thanks.
edit:
this plist, want insert exclusively new dictionary, in same format other dictionaries in plist, key/name of dictionary taken info i'm pulling of attributes beingness set information. sorry, need 10 rep add together images.
http://oi57.tinypic.com/2yvnei0.jpg
solved issue , straight forwards in end using dictionary objects , keys:
nsmutabledictionary *namedictionary = [nsmutabledictionary dictionary]; [namedictionary setvalue:appdelegate.building forkey:@"location"]; [namedictionary setvalue:appdelegate.members forkey:@"capacity"]; nsstring *keystring = [nsstring stringwithformat:@"%@", appdelegate.room]; nsmutabledictionary *thedictionary = [nsmutabledictionary dictionarywithobjectsandkeys:namedictionary, keystring, nil]; ios objective-c plist
No comments:
Post a Comment