Coder Social home page Coder Social logo

imxstylekit's Introduction

IMXStyleKit

Style settings:UIColor,iconfont,UIFont

目录

  1. IMXStyleKit:头文件
  2. UIColor+IMXColorKit:十六进制色值配置方案、颜色色值集合;
  3. UIFont+IMXFontKit:常用字体字号集合、helNeue字体字号配置;
  4. IMXIconfont:iconfont配置集合。

iconfont使用

  • iconfont属于自定义字体。目前要求iconfont字体集个数不限
  • 目前使用和工程名相同的iconfont字体集,如projName.ttf
iOS示例
  • 查找ttf文件,找到具体icon对应的Unicode值,如\ue600
  • UI控件调整fontsize,使之具有合适赋值iconfont字体的大小
  • UI控件赋值iconfont文本即可。
导入文件
  1. 进入网站iconfont,搜索需要的icons,整合为同一项目中,然后下载至本地。

  2. 下载文件中含有X.ttf的文件,置入主工程,即完成导入的所有icon字体图标(属于资源文件导入范畴),Target设置。

  3. 在工程项目的info.plist文件中,设置KV值:

    <key>UIAppFonts</key>
    <array>
    	<string>****.ttf</string>
    </array>
    

imxstylekit's People

Contributors

panzhou0b1b avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.