/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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 coÌdigo https://github.com/boctor/idev-recipes/tree/master/StretchableImages