通过 Pod 搜索:打开终端执行$ Pod Search NHUtilSets****
NSString:
- (BOOL)isEmpty;
/**
* @brief Judging method
*
* @return whether only contain numbers
*/
- (BOOL)isOnlyNumbers;
/**
* @brief Judging method
*
* @return wheter only contain letters
*/
- (BOOL)isOnlyLetters;
/**
* @brief Judging method
*
* @return whether only contain number or letter
*/
- (BOOL)isNumberOrLetter;
/**
* @brief Hash
*
* @return md5 hash value
*/
- (NSString *)MD5Hash;
NSArray:
/**
* @brief Judging method
*
* @return whether the array is empty
*/
- (BOOL)isEmpty;
NSDictionary:
/**
* @brief Judging method
*
* @return whether the map is empty
*/
- (BOOL)isEmpty;
UIColor:
/**
* @brief generate color
*
* @return random color instance
*/
+ (UIColor *)randomColor;
/**
* @brief generate color
*
* @param hexString eg:#34DE8A
*
* @return color's instance
*/
+ (UIColor *)colorWithHexString:(NSString *)hexString;
UIImage:
/**
* @brief generate image
*
* @param color the image's color
*
* @return the image from color
*/
+ (UIImage *)imageWithColor:(UIColor *)color;
/**
* @brief generate small image
*
* @param bounds the destnation image's frame
*
* @return the cropped image
*/
- (UIImage *)croppedImage:(CGRect)bounds;
/**
* @brief scale image
*
* @param dstSize the destnation size
*
* @return the scaled image
*/
- (UIImage*)scaleImageToSize:(CGSize)dstSize;
UIView:
@property (nonatomic, assign) CGFloat top;
...
@property (nonatomic, assign) CGSize size;