Sorting items In NSDictionary -


I'm reading items from plist in dictionary, I have the button to set the title and value in the dictionary as a dictionary I'm using the keys. Now I have to sort the objects in the dictionary, I do not want to put the sorted item in the array, because I am using the dictionary to set the title and tag for the button. I checked the link, but most of them are putting the solved items in the array. How can I do this using the array and use the same dictionary instead? Here is the code snippet

  while (key = [keyEnumerator nextObject]) {UIButton * btnWith = [UIButton buttonWithType: UIButtonTypeRoundedRect]; btnWith.tag = [[topics objectForKey: key] integerValue]; [BTND SET SETITAL: State for Key: UICOnTrustStateAnimal]; BtnWith.titleLabel.font = [UIFont fontWithName: @ "Aller-Light" Size: 15]; [BTND Set Settleer: [UIColor blackcolor] forState: UIControlStateNormal]; BTN Wide Contour Horizontal Alignment = UCentral ContentHoriginal Alignment; [Btnw setbackground display: [UIImage imageNamed: @ "unchecked."] ForState: UIControlStateNormal]; [BTNAD-Unbreakable: Slow Action: @Selector (CheckboxClit :) for control events: UIControlEventTouchUpInside]; [self.scrollview setContentSize: CGSizeMake (320 subjects, count * 50)]; }   

The order of the entries in the dictionary is not determined by the keys (like any of XXX Type), and save them in archives that are ordered (like an array). Then use this collection to use dictionary entries in your desired order.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -