NSString *starsPath = [[NSBundle mainBundle] pathForResource:@"star" ofType:@"png"];
UIImage *theImage = [[UIImage alloc] initWithContentsOfFile:starsPath];
theImage= [theImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
stars.tintColor = [UIColor orangeColor];
stars.image = theImage;
原文:http://10907795.blog.51cto.com/10897795/1865515