摘要:
原始图片:拉伸后图片:具体代码,很简单: UIImage *bgImage = [[UIImage imageNamed:@"search_edit_bg.png"] stretchableImageWithLeftCapWidth:2 topCapHeight:0];// UIImage *tempImage = [[UIImage imageNamed:@"remind_tohome_btn.png"] stretchableImageWithLeftCapWidth:2 topCapHeight:0]; UIView *theView = [[UI 阅读全文