摘要:
本文分析对比了各种更改UIView背景的方法。当然,背景是根据一个图片来的(非纯色)。一.加一个uiimageview在uiview上面 UIImageView* imageView = [[UIImageView alloc] initWithFrame:view.bounds]; imageView.image = [[UIImage imageNamed:@"name.png"] stretchableImageWithLeftCapWidth:left topCapHeight:top]; [view addSubview:imageView];这种方式,如果原始图 阅读全文