Latest 0.0.4
Homepage https://github.com/yanxiaobing/XBDevelopTools
License MIT
Platforms ios 8.0, requires ARC
Authors

Color

Define

  • XBRandomColor
  • XBHexAlphaColor(hex,a)
  • XBHexColor(hex)
  • XBRGBAColor(r,g,b,a)
  • XBRGBColor(r,g,b)

Class method

  • + (UIColor *)xb_randomColor;

  • + (UIColor *)xb_colorWithHexString:(NSString *)color;

  • + (UIColor *)xb_colorWithHexString:(NSString *)color alpha:(float)alpha;

  • + (UIColor *)xb_colorWithRed:(float)red green:(float)green blue:(float)blue;

  • + (UIColor *)xb_colorWithRed:(float)red green:(float)green blue:(float)blue alpha:(float)alpha;

Path

Define

  • XBDocumentPath
  • XBLibraryPath
  • XBCachesPath
  • XBTempPath
  • XBDocumentSubPath(string)
  • XBLibrarySubPath(string)
  • XBCachesSubPath(string)

Class method

  • + (NSString *)documentPath;
  • + (NSString *)libraryPath;
  • + (NSString *)libraryCachesPath;
  • + (NSString *)tempPath;

UIView Category

property

  • @property (nonatomic, assign) CGFloat xb_width;
  • @property (nonatomic, assign) CGFloat xb_height;
  • @property (nonatomic, assign) CGFloat xb_top;
  • @property (nonatomic, assign) CGFloat xb_left;
  • @property (nonatomic, assign) CGFloat xb_bottom;
  • @property (nonatomic, assign) CGFloat xb_right;
  • @property (nonatomic, assign) CGFloat xb_centerX;
  • @property (nonatomic, assign) CGFloat xb_centerY;

Singleton

Define

  • XBSingletonH(methodName)
  • XBSingletonM(methodName)

Latest podspec

{
    "name": "XBDevelopTools",
    "version": "0.0.4",
    "summary": "u4feeu590dXBScale(value)u5b8fu4e2dvalueu5305u542bu8fd0u7b97u7b26u65f6u8ba1u7b97u9519u8befbug",
    "homepage": "https://github.com/yanxiaobing/XBDevelopTools",
    "license": "MIT",
    "authors": {
        "XBingo": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/yanxiaobing/XBDevelopTools.git",
        "tag": "0.0.4"
    },
    "requires_arc": true,
    "source_files": "XBDevelopTools/*.{h}",
    "subspecs": [
        {
            "name": "Color",
            "source_files": "XBDevelopTools/Color/*.{h,m}"
        },
        {
            "name": "Path",
            "source_files": "XBDevelopTools/Path/*.{h,m}"
        },
        {
            "name": "Singleton",
            "source_files": "XBDevelopTools/Singleton/*.{h,m}"
        },
        {
            "name": "View",
            "source_files": "XBDevelopTools/View/*.{h,m}"
        }
    ]
}

Pin It on Pinterest

Share This