//UIColor *color1 = [UIColor colorWithPatternImage:[UIImage imageNamed:@"left1.png"]]; //UIColor *color2 = [UIColor colorWithPatternImage:[UIImage imageNamed:@"left2.png"]]; //[contactBookBtn setBackgroundColor:color1]; [contactBookBtn setBackgroundImage:[UIImage imageNamed:@"left1.png"] forState:UIControlStateNormal]; [contactBookBtn setBackgroundImage:[UIImage imageNamed:@"left2.png"] forState:UIControlStateSelected]; //[contactBookBtn setTitleColor:color1 forState:UIControlStateNormal]; //[contactBookBtn setTitleColor:color2 forState:UIControlStateSelected]; //[cell.selectOrNot setImage:[UIImage imageNamed:@"gou.png"]forState:UIControlStateNormal ] ;
iOS 背景图片。按钮高亮自定义背景
最新推荐文章于 2018-03-07 11:46:00 发布