ios - 如何为 ios 设置图像颜色段?

标签 ios swift segment

我需要在段 0 中设置黑色图像 ... 但颜色总是遵循色调颜色...... 像这样 enter image description here

enter image description here

如何设置段图颜色?

感谢您的宝贵时间。

最佳答案

从您的原始文件夹图像开始,调用 imageWithRenderingMode:,渲染模式为 。 AlwaysOriginal.现在图像将完全按原样使用,没有着色。

关于ios - 如何为 ios 设置图像颜色段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31457861/

相关文章:

ios - “NSApp”在 Mac 的 UIKit 中不可用 : How to embed Mac only framework in iOS app on macOS?

ios - 有没有办法确定 Apple Watch 和 iPhone 之间的粗略距离?

C程序新段声明

java - 如何使用 ZPM 段解析 DFT_P03 消息

c# - Bentley-Ottmann 算法中 Segment 类的 IComparable 实现

ios - Parse.com : How large is the local cache?

ios - 选择前预加载表格 View 数据

ios - ARkit如何从点击位置获取节点的精确点

xcode - 如何让一个变量在所有场景中都已知?

ios - Swift NSDictionary 子类型