Skip to content

Instantly share code, notes, and snippets.

@fannheyward
Created August 30, 2011 02:11
Show Gist options
  • Save fannheyward/1179977 to your computer and use it in GitHub Desktop.
Save fannheyward/1179977 to your computer and use it in GitHub Desktop.
iPhone Done like button
doneButton.frame = CGRectMake(5, 27, 48, 30);
doneButton.backgroundColor = [UIColor clearColor];
UIImage *buttonImageNormal = [UIImage imageNamed:@"doneButton.png"];
UIImage *stretchableButtonImageNormal = [buttonImageNormal stretchableImageWithLeftCapWidth:5 topCapHeight:0];
[doneButton setBackgroundImage:stretchableButtonImageNormal forState:UIControlStateNormal];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment