Skip to content

Instantly share code, notes, and snippets.

@richcollins
Created October 4, 2008 18:41
Show Gist options
  • Save richcollins/14790 to your computer and use it in GitHub Desktop.
Save richcollins/14790 to your computer and use it in GitHub Desktop.
var button = [[CPButton alloc] initWithFrame:CPRectMake(0, 0, 0, 0)];
[button setButtonType:CPSwitchButton];
[button setImagePosition:CPNoImage];
if(_currentNavigationItem == navigationItem)
{
[button setFont:BreadcrumbsViewBoldFont];
}
else
{
[button setFont:BreadcrumbsViewFont];
}
[button setStringValue:[navigationItem title]];
console.log(button);
[button sizeToFit];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment