Skip to content

Instantly share code, notes, and snippets.

Created September 20, 2008 09:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
[importButton setBordered:NO];
[importButton setImagePosition:CPImageLeft];
[importButton setTitle:@"blah"];
[importButton setTextColor:[CPColor blackColor]];
[importButton setFont:[CPFont systemFontOfSize:16.0]];
[importButton setImage:[[CPImage alloc] initWithContentsOfFile:path1 size:CGSizeMake(32.0, 32.0)]];
[importButton setAlternateImage:[[CPImage alloc] initWithContentsOfFile:path2 size:CGSizeMake(32.0, 32.0)]];
[importButton setAlignment:CPLeftTextAlignment];
[importButton setDelegate:self];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment