iOS中使用图片作为颜色的背景图时间:2023-03-09 02:02:48 Objective-C: [UIColor colorWithPatternImage:[UIImage imageNamed:@"jpg"]]; Swift: UIColor(patterImage: UIImage(named: "jpg")!)