使用colorWithPatternImage与UIView着色的颜色

时间:2019-05-16 09:33:23

标签: cocoa-touch uiview uiimage uicolor

我需要使用重复的图案图像,但同时我需要对其进行着色

使用

self.dividerView.tintColor = [UIColor redColor];
self.dividerView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"divider"]];

没有应用色调颜色,这是可以理解的,但是如何使用图案功能以及色调颜色功能呢? (例如,带有着色图案的图像)

PS:图像当然是模板图像

0 个答案:

没有答案
相关问题