Created
June 1, 2009 21:44
-
-
Save warwick/121824 to your computer and use it in GitHub Desktop.
This file contains 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
var toolbarItem = [[CPToolbarItem alloc] initWithItemIdentifier:anItemIdentifier]; | |
if ([anItemIdentifier isEqualToString:@"Search"]) { // Search isn't just an image, but a special view | |
[toolbarItem setLabel:@"Search"]; | |
var searchView = [[CPTextField alloc] initWithFrame:CPRectMake(0, 0, 100, 29)]; | |
[searchView setEditable:YES]; | |
[searchView setBordered:YES]; | |
[searchView setBezeled: YES]; | |
[searchView setBezelStyle:CPTextFieldSquareBezel] | |
[toolbarItem setView:searchView]; | |
return toolbarItem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment