https://github.com/yanxiaobing/xbdeveloptools
common develop tools
https://github.com/yanxiaobing/xbdeveloptools
Last synced: 6 days ago
JSON representation
common develop tools
- Host: GitHub
- URL: https://github.com/yanxiaobing/xbdeveloptools
- Owner: yanxiaobing
- License: mit
- Created: 2018-07-20T08:19:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-13T10:03:00.000Z (over 5 years ago)
- Last Synced: 2025-05-15T06:09:35.103Z (6 days ago)
- Language: Objective-C
- Size: 237 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XBDevelopTools
## 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)`