Created
May 25, 2010 20:27
-
-
Save Me1000/413643 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| newLocationType = [[CPPopUpButton alloc] initWithFrame:CGRectMake(105, 70, 200, 24)]; | |
| [newLocationType setBordered:NO]; | |
| [newLocationType setTitle:@"Select Type"]; | |
| // You can add items with just titles like so: (Note: it takes an array) | |
| [newLocationType addItemsWithTitles:[@"Select Type", @"Building", @"Computer", @"Safe", @"Car", @"Bank", @"Yard"]]; | |
| // or pass your own menu items as an array | |
| // This is useful if you want custom menu items (with images in them for example) | |
| //[newLocationType addItems:[LocationItemTypes menuItems]]; | |
| [contentView addSubview:newLocationType]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment