Posted By

torhector2 on 02/26/11


Tagged

UIImage stretchableImageWithLeftCapWidth


Versions (?)

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


 / Published in: Objective C
 

  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  

You need to login to post a comment.