UIColor *color = [UIColor colorWithPatternImage:[UIImage imageNamed:@"半透明title.png"]]; uilabel.backgroundColor = color;