Coder Social home page Coder Social logo

iamdamonqin / commonextensioncollection-swift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from damonqin/commonextensioncollection-swift

0.0 1.0 0.0 147 KB

Common Extension Collection in Swift. Such as UIView position & Hex Value Color.

License: MIT License

Swift 100.00%

commonextensioncollection-swift's Introduction

CommonExtensionCollection-Swift

Common Extension Collection in Swift. Such as UIView position & Hex Value Color.

Swift 中常用的扩展。比如说 UIView 的位置,十六进制的颜色值等。

###UIView You'd better disable Autolayout of the XIB file which you will use this UIView Extension. Although the Autolayout is very convenient. Don't worry. It is convenient and does not affect the Storyboard. Just See the Image, You will understand this Extension as soon as possible.

你最好禁用掉你要使用次扩展的XIB文件的自动布局功能。尽管自动布局是非常方便的。不用担心。它很方便而且不影响Storyboard.请看下面的图片,你能很快理解这个扩展的好处。

###UIColor Hex value Color is very useful and converient.Just like this:
十六进制的颜色值很方便,很好用,就像这样:
self.testButton.backgroundColor = UIColor.hexValue("323")
self.testButton.backgroundColor = UIColor.hexValue("#323")
self.testButton.setTitleColor(UIColor.hexValueWithAlpha("ffffff", alpha: 1.0), forState: UIControlState.Normal)

commonextensioncollection-swift's People

Contributors

iamdamonqin avatar damonqin 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.