Latest 0.0.3
Homepage https://github.com/LSRain/LSAdditions
License MIT
Platforms ios 8.0
Frameworks Foundation, CoreFoundation, UIKit
Authors

The Category of Commonly used controls and you can create a control quickly(一些常用控件/对象的分类)

Support for commonly used controls or objects

Some UI controls and Foundation objects

  • "UIColor+LSAddition"
  • "UILabel+LSAddition"
  • "UIButton+LSAddition"
  • "NSAttributedString+LSAddition"
  • "NSObject+LSAdditon"
  • "UIScreen+LSAddition"
  • "UIViewController+LSAddition"
  • "UIView+LSAddition"
  • "NSString+LSAddition"

Instructions

  • Add the header file – LSAddition.h

Usecocopod

pod ‘LSAdditions’

Example

/// Set color
self.view.backgroundColor = [UIColor ls_colorWithHex:0xff0000];
/// create a button
[UIButton ls_textButton:@"buttonName" fontSize:14 normalColor:[UIColor ls_colorWithHex:0xff0000] selectedColor:nil];
. . .

Version record

  • June 13, 2017 ~> 0.0.1
  • June 17, 1717 ~> 0.0.2
  • July 04, 2017 ~> 0.0.3
    • Optimized code and added some encryption methods, such as md5, XOR…

License

MIT

Latest podspec

{
    "name": "LSAdditions",
    "summary": "Support for commonly used controls or objects",
    "description": "The Category of Commonly used controls and you can create a control quickly",
    "platforms": {
        "ios": "8.0"
    },
    "version": "0.0.3",
    "homepage": "https://github.com/LSRain/LSAdditions",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "LSRain": "[email protected]"
    },
    "source": {
        "git": "https://github.com/LSRain/LSAdditions.git",
        "tag": "0.0.3"
    },
    "source_files": "LSAdditions/LSAdditions/Class/LSAdditions/*.{h,m}",
    "public_header_files": "LSAdditions/LSAdditions/Class/LSAdditions/*.{h}",
    "frameworks": [
        "Foundation",
        "CoreFoundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This