Created
February 19, 2013 02:06
-
-
Save mkral/4982488 to your computer and use it in GitHub Desktop.
Stretchable UIImage On Button
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
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 320, 44)]; | |
UIImage *backgroundImage = [[UIImage imageNamed:@"whiteButtonWithArrow"] stretchableImageWithLeftCapWidth:6 topCapHeight:0]; | |
[button setBackgroundImage:backgroundImage forState:UIControlStateNormal]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment