UIColor *color=[[UIColor alloc]initWithPatternImage:[UIImage imageNamed:@"1.jpg"]]; [_view1 setBackgroundColor:color];