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]; |