Skip to content

Instantly share code, notes, and snippets.

@toddfreese
Created February 1, 2012 22:03
Show Gist options
  • Select an option

  • Save toddfreese/1719761 to your computer and use it in GitHub Desktop.

Select an option

Save toddfreese/1719761 to your computer and use it in GitHub Desktop.
uploadButton = [[CPButton alloc] initWithFrame:CGRectMake(490 + folderWidth, 13, 120, 24)];
[uploadButton setTitle:@"Asset Upload"];
[uploadButton setTarget:self];
[uploadButton setAction:@selector(upload:)];
var slices = [["Resources/button-bezel-disabled-left.png", 4.0, 24.0],
["Resources/button-bezel-disabled-center.png", 1.0, 24.0],
["Resources/button-bezel-disabled-right.png", 4.0, 24.0]];
[uploadButton setValue:CPColorWithImages(slices) forThemeAttribute:@"bezel-color" inState:CPThemeStateDisabled];
[bottomButtonView addSubview:uploadButton];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment