Return to Snippet

Revision: 42086
at February 26, 2011 20:10 by torhector2


Initial Code
UIImage* buttonImage =[[UIImage imageNamed:@"button.png"] stretchableImageWithLeftCapWidth:5.0 topCapHeight:0.0];

UIImageView* imageView = [[UIImageView alloc] initWithImage:buttonImage];
imageView.frame = CGRectMake(0, 0, 300.0, buttonImage.size.height);

//Ver esta URL, hay código
https://github.com/boctor/idev-recipes/tree/master/StretchableImages

Initial URL

                                

Initial Description

                                

Initial Title
Redimensionar imagen según contenido (como los globos de los SMS) stretchableImageWithLeftCapWidth

Initial Tags

                                

Initial Language
Objective C