当前位置:网站首页>How do I get red green blue (RGB) and alpha back from a UIColor object?
How do I get red green blue (RGB) and alpha back from a UIColor object?
2022-06-25 07:12:00 【Technology feast】
problem :
I am getting a UIColor returned from this method: I return a from this method UIColor :
- (UIColor *)getUserSelectedColor { return [UIColor colorWithRed:redSlider.value green:greenSlider.value blue:blueSlider.value alpha:1.0];}and getting color like this: And get this color :
UIColor *selectedColor = [(ColorPickerView *)alertView getUserSelectedColor];Now I want to get red, green, blue from selectedColor, in order to use those values. Now I want to start from selectedColor Get red in 、 green 、 Blue , To use these values .I want values between 0 and 1. I want 0 To 1 Between the value of the .
Solution :
Reference resources : https://stackoom.com/en/question/6HMa边栏推荐
- 聚类和分类的最基本区别。
- Understand ZBrush carving software and game modeling analysis
- Love Terminator
- shell 上下两行合并成一行
- Derivation of COS (a+b) =cosa*cosb-sina*sinb
- Why did Yanjing Beer come here?
- Too beautiful promise because too young
- 太美的承诺因为太年轻
- Common cluster scripts
- Leetcode 2163. Minimum difference of sum after element deletion
猜你喜欢

Error reported during vivado simulation common 17-39

有了 MySQL 为什么要用 NoSQL?

【一起上水硕系列】Day 5

父爱的表达方式

Finally, when you open source the applet ~

高效探索|ES地理位置查询的一次应用实践

Navicat防止新建查询误删

Streamnational platform version 1.5 is released, integrating istio and supporting openshift deployment
![[轻松学会shell编程]-5、计划任务](/img/6f/8067d4201f0c2e7a692d89885e3ad9.png)
[轻松学会shell编程]-5、计划任务

Esp8266 & sg90 steering gear & Lighting Technology & Arduino
随机推荐
Event registration | Apache pulsar x kubesphere online meetup is coming
Blue Bridge Cup SCM module code (LED) (code + comments)
Change the current count of auto increment values in MySQL- Changing the current count of an Auto Increment value in MySQL?
Torchserve pit avoidance Guide
Entry level use of flask
The king scheme in distributed locks - redisson
Non-contact infrared temperature measurement system for human body based on single chip microcomputer
弱大数定理的意义与证明
想买股票去哪个证券公司开户更快更安全
Lotus v1.16.0-rc2 Calibration net
【一起上水硕系列】Day 4
Your local changes to the following files would be overwritten by merge: . vs/slnx. sqlite
2022 biological fermentation Exhibition (Jinan), which is a must read before the exhibition. The most comprehensive exhibition strategy will take you around the "fermentation circle"
lotus v1.16.0-rc2 Calibration-net
Shandong finds clean energy that can be used by China for 3800 years? You should know the truth first
Your local changes to the following files would be overwritten by merge: .vs/slnx.sqlite
alphassl通配符证书送一个月
Learn the first routine of FPGA
[ros2] Why use ros2? Introduction to ros2 system characteristics
Capable people never complain about the environment!