iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
bigwang
V2EX  ›  iDev

UIColor 取色器,自动生成代码

  •  
  •   bigwang · Sep 13, 2012 · 5064 views
    This topic created in 5131 days ago, the information mentioned may be changed or developed.
    6 replies  •  1970-01-01 08:00:00 +08:00
    Air_Mu
        1
    Air_Mu  
       Sep 13, 2012
    bigwang
        2
    bigwang  
    OP
       Sep 13, 2012
    @Air_Mu 这网站好复杂啊
    chrisyipw
        3
    chrisyipw  
       Sep 13, 2012
    fmfsaisai
        4
    fmfsaisai  
       Sep 13, 2012
    #define UIColorFromRGB(rgbValue) [UIColor
    colorWithRed:(((float)((rgbValue & 0xFF0000) >> 16))/255.0)
    green:(((float)((rgbValue & 0xFF00) >> 8))/255.0)
    blue:(((float)(rgbValue & 0xFF))/255.0) alpha:1.0]

    UIColor *color = UIColorFromRGB(0x800080);


    ....
    bigwang
        5
    bigwang  
    OP
       Sep 13, 2012
    @fmfsaisai
    我也用过这个宏,主要是 手工填rgb值不够直观
    fmfsaisai
        6
    fmfsaisai  
       Sep 14, 2012
    @bigwang 我的意思是,如果要取色,16进制RGB是最通用的,想要找,哪里都是一大片。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2563 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 13:40 · PVG 21:40 · LAX 06:40 · JFK 09:40
    ♥ Do have faith in what you're doing.