Latest 0.0.8
Homepage https://github.com/NSSONGMENG/IXColor
License MIT
Platforms ios 6.0, requires ARC
Authors

本框架旨在以一种对系统影响极小的方式,使App支持多种皮肤模式,例如经常遇到的夜间模式等。
只需要设置对应模式的颜色和图片,即可实现一键热切换。

IXColor

使用

pod ‘IXColor’


step 1:


    //导入头文件
    #import "IXColorHeader.h"

step 2:


    //设置app所支持的颜色模式
    [IXColorMgr defaultMgr].versions = @[@"white",@"black"];
    [IXColorMgr defaultMgr].curVersion = @"white";

step 3:


    //针对不同的模式设置控件颜色和图片
    eg.
    //UILabel
    label.textColorPicker = IXColorPickerWithRGB(0x1d1d1d,0xe2e2e2);

    //UISwitch
    switch.onTintColorPicker = IXColorPickerWithRGB(0xffe400,0xffac32);
    switch.tintColorPicker = IXColorPickerWithRGB(0xe64a4a,0x28ac8e);

    //UIView
    view.backgroundColorPicker = IXColorPickerWithRGB(0xe2e2e2,0x1d1d1d);

    //UINavigationBar
    navigationBar.barTintColorPicker = IXColorPickerWithRGB(0xe2e2e2,0x1d1d1d);

    //UIImageView
    UIImage * img1 = [UIImage imageNamed:@"m_c_usd"];
    UIImage * img2 = [UIImage imageNamed:@"m_c_usd_sl"];
    imageView.imagePicker = IXImagePickerWithImages(img1,img2);

Latest podspec

{
    "name": "IXColor",
    "version": "0.0.8",
    "summary": "Appu989cu8272u56feu7247u52a8u6001u66f4u6362u6846u67b6",
    "description": "[email protected]",
    "homepage": "https://github.com/NSSONGMENG/IXColor",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": ""
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/NSSONGMENG/IXColor.git",
        "tag": "0.0.8"
    },
    "source_files": "IXColor/IXColorHeader.h",
    "public_header_files": "IXColor/IXColorHeader.h",
    "requires_arc": true,
    "subspecs": [
        {
            "name": "Core",
            "source_files": "IXColor/Core/*.{h,m}",
            "public_header_files": "IXColor/Core/*.h"
        },
        {
            "name": "UIKit",
            "source_files": "IXColor/UIKit/*.{h,m}",
            "public_header_files": "IXColor/UIKit/*.h",
            "dependencies": {
                "IXColor/Core": []
            }
        },
        {
            "name": "Quartz",
            "source_files": "IXColor/Quartz/*.{h,m}",
            "public_header_files": "IXColor/Quartz/*.h",
            "dependencies": {
                "IXColor/Core": []
            }
        }
    ]
}

Pin It on Pinterest

Share This