Latest 1.0.0
Homepage https://github.com/AnsonHui/DyCategories
License MIT
Platforms ios 8.0, requires ARC
Authors

DyCategories

Tools for settings UIView’s frame and make UIColor with Hexadecimal values.

Usage

// layout
let label = UILabel(frame: CGRectMake(40, 40, 200, 30))
label.backgroundColor = UIColor(argb: 0xff343434) // ARGB
label.dyLeft = 10
label.dyTop = 50
label.dyCenterX = self.view.dyCenterX
label.dyCenterY = self.view.dyCenterY
print("(label.screenFrame())")

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:

$ gem install cocoapods

To integrate DyCategories into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'DyCategories'

Then, run the following command:

$ pod install

Latest podspec

{
    "name": "DyCategories",
    "version": "1.0.0",
    "summary": "u5de5u5177u7c7b",
    "homepage": "https://github.com/AnsonHui/DyCategories",
    "license": "MIT",
    "authors": {
        "AnsonHui": "[email protected]"
    },
    "source": {
        "git": "https://github.com/AnsonHui/DyCategories.git",
        "tag": "1.0.0"
    },
    "source_files": "Classes/*.swift",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    }
}

Pin It on Pinterest

Share This