Latest 1.4.0
Homepage https://github.com/czpc/ZpCategoriesKit
License MIT
Platforms ios 7.0, requires ARC
Dependencies MBProgressHUD, BlocksKit, PREBorderView, ReactiveCocoa
Frameworks UIKit
Authors

如何使用

pod 'ZPCategoriesKit', '~> 1.0.5'

为了避免与其他的类库冲突,本库的命名全部用zp_作为前缀

本库对
NSString、NSMutableArray、NSObject、NSDate、NSArray
UIView、UITableView、UIViewController、UIButton、UIImage、UILabel、UITabBar、UIResponder等进行了扩展

NSString

判断字符串中是否存在某字符串
- (BOOL)zp_isContainString:(NSString *)string;

是否为nil 或者null 空
- (BOOL)zp_isEmpty;

是否包含中文
- (BOOL)zp_isContainChinese;

是否只有英文和数字
- (BOOL)zp_isOnlyContainNumberOrLatter;

是否为整型
- (BOOL)zp_isPureInt;

是否为浮点型
- (BOOL)zp_isPureFloat;

计算string的size
- (CGSize)zp_sizeWithlimitSize:(CGSize)limitSize attribute:(NSDictionary *)attribute;

将中文转化成拼音小写
- (NSString *)zp_pinyinLowercase;

将中文转化成拼音大写
- (NSString *)zp_pinyinUppercase;

32位md5大写
- (NSString *)zp_md5_32_UppercaseString;

32位md5小写
- (NSString *)zp_md5_32_LowercaseString;

64位md5大写
- (NSString *)zp_md5_64_UppercaseString;

64位md5小写
- (NSString *)zp_md5_64_LowercaseString;

等等 其他的就不在详细介绍。

Latest podspec

{
    "name": "ZPCategoriesKit",
    "version": "1.4.0",
    "license": "MIT",
    "summary": "Objective-C  Categories",
    "homepage": "https://github.com/czpc/ZpCategoriesKit",
    "authors": {
        "czps": "[email protected]"
    },
    "source": {
        "git": "https://github.com/czpc/ZpCategoriesKit.git",
        "tag": "1.4.0"
    },
    "requires_arc": true,
    "public_header_files": "ZPCategoriesKit/ZPCategoriesKit.h",
    "source_files": "ZPCategoriesKit/ZPCategoriesKit.h",
    "platforms": {
        "ios": "7.0"
    },
    "frameworks": "UIKit",
    "dependencies": {
        "MBProgressHUD": [
            "0.9.2"
        ],
        "BlocksKit": [
            "2.2.5"
        ],
        "PREBorderView": [
            "3.0"
        ],
        "ReactiveCocoa": [
            "2.5"
        ]
    },
    "default_subspecs": "All",
    "subspecs": [
        {
            "name": "All",
            "ios": {
                "dependencies": {
                    "ZPCategoriesKit/Core": [],
                    "ZPCategoriesKit/UIKit": [],
                    "ZPCategoriesKit/Components": []
                }
            }
        },
        {
            "name": "Core",
            "source_files": [
                "ZPCategoriesKit/ZPCategoriesKit.h",
                "ZPCategoriesKit/Core/*.{h,m}"
            ]
        },
        {
            "name": "UIKit",
            "dependencies": {
                "ZPCategoriesKit/Core": []
            },
            "source_files": [
                "ZPCategoriesKit/ZPCategoriesKit.h",
                "ZPCategoriesKit/UIKit/*.{h,m}"
            ]
        },
        {
            "name": "Components",
            "source_files": [
                "ZPCategoriesKit/ZPCategoriesKit.h",
                "ZPCategoriesKit/Components/*.{h,m}"
            ]
        }
    ]
}

Pin It on Pinterest

Share This