set uiview image background: (下面代码是pattern file,即重复image来
self.view.backgroundColor = [UIColorcolorWithPatternImage:[UIImageimageNamed:@"title.png"]];
set uitableviewcell image background:
UIImageView *bgView = [[UIImageViewalloc] initWithImage:[UIImageimageNamed:@"title_dept_date.png"]];
bgView.alpha = 0.6;
cell.backgroundView = bgView;
other ref links
http://stackoverflow.com/questions/5856373/uiimageview-background-image-and-rotation-help
http://stackoverflow.com/questions/8127189/how-to-stretch-scale-image-on-a-uiview
http://stackoverflow.com/questions/9521443/uiimageview-fill-in-uiview