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


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. UIImage* buttonImage =[[UIImage imageNamed:@"button.png"] stretchableImageWithLeftCapWidth:5.0 topCapHeight:0.0];
  2.  
  3. UIImageView* imageView = [[UIImageView alloc] initWithImage:buttonImage];
  4. imageView.frame = CGRectMake(0, 0, 300.0, buttonImage.size.height);
  5.  
  6. //Ver esta URL, hay código
  7. https://github.com/boctor/idev-recipes/tree/master/StretchableImages

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.