//initWithFrame 用来创建一个ui的x,y,w,h
UITextView *textView=[[UITextView alloc]initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 120)];
//textView.bounds返回CGRect,该imageView用于填充背景
UIImageView *imgView=[[UIImageView alloc] initWithFrame:textView.bounds];
imgView.image=[UIImage imageNamed:@"bg.png"];
//addSubview方法
[textView addSubview:imgView];
//sendSubviewToBack 将该subview置于最底层
[textView sendSubviewToBack:imgView];