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

AHCategories

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

Usage

// layout
let label = UILabel(frame: CGRect(x: 40, y: 40, width: 200, height: 30))
label.backgroundColor = UIColor(argb: 0xff343434) // ARGB
label.ahLeft = 10
label.ahTop = 50
label.ahCenterX = self.view.ahCenterX
label.ahCenterY = self.view.ahCenterY
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 AHCategories 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 'AHCategories'

Then, run the following command:

$ pod install

Latest podspec

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

Pin It on Pinterest

Share This