Skip to content

Instantly share code, notes, and snippets.

@NYiPhoneDeveloper
Created April 4, 2010 23:30
Show Gist options
  • Save NYiPhoneDeveloper/355809 to your computer and use it in GitHub Desktop.
Save NYiPhoneDeveloper/355809 to your computer and use it in GitHub Desktop.
NSArray *colorList = [NSArray arrayWithObject: [NSDictionary dictionaryWithObjectsAndKeys:
@"BrownColor", @"titleValue", [UIColor brownColor], @"colorValue", nil],
[NSDictionary dictionaryWithObjectsAndKeys: @"orangeColor", @"titleValue", [UIColor orangeColor], @"colorValue", nil],
[NSDictionary dictionaryWithObjectsAndKeys: @"purpleColor", @"titleValue", [UIColor purpleColor], @"colorValue", nil];
[NSDictionary dictionaryWithObjectsAndKeys: @"redColor", @"titleValue", [UIColor redColor], @"colorValue", nil], nil];
[colorList retain];
// Playing with some new code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment