Latest 0.1.6
Homepage https://github.com/Insofan/HXTool
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

HXTool is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "HXTool"

Usage

1.UIColor with hex string

self.view.backgroundColor = [UIColor hx_colorWithRGBString:@"4EBDFB"];

or with RGB number

self.view.backgroundColor = [UIColor hx_colorWithRGBNumber:78 green:189 blue:151];

also random color

self.view.backgroundColor = [UIColor hx_randomColor];

2.UIButton

UIButton *button = [UIButton hx_buttonWithTitle:@"button" fontSize:12 normalColor:[UIColor blueColor] selectedColor:[UIColor whiteColor]];

3.Screen frame

1.Screen Width and Screen Height
view.frame = CGRectMake(100, 300, [UIScreen hx_screenWidth]/2, [UIScreen hx_screenHeight]/6);

4.Macro

//App Version
NSLog(@"app version: %@", AppVersion);

5.NSArray

 //enumerate objects
 [self.array hx_each:^(id obj) {
        NSLog(@"%@",obj);
    }];

Author

Insofan, [email protected]

License

HXTool is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "HXTool",
    "version": "0.1.6",
    "summary": "OCu5de5u5177u5408u96c6",
    "description": "OCu5de5u5177u5408u96c6",
    "homepage": "https://github.com/Insofan/HXTool",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Insofan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Insofan/HXTool.git",
        "tag": "0.1.6"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "HXTool/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This