Latest 2.2.0
Homepage https://github.com/Dzhijian/ZJKitTool
License MIT
Platforms ios 8.0, requires ARC
Dependencies Masonry, MBProgressHUD, YYCategories
Frameworks UIKit
Authors

Version
License
Platform

Statement

ZJKitTool 开发快速添加UIKit控件,结合Masonry,以及其他工具类的简单使用,底层的封装.

Installation

ZJKitTool is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ZJKitTool'

导入头文件

#import <ZJHelperKit.h>

Author

coderDeng,
Email:[email protected]
QQ:646724452

Usage

MVVM模式设计的图文混排评论列表,简单可随意更改的筛选视图,后期会不断完善,以及各个控件的封装,Block回调可以简单快速创建和使用Masonry布局,以及实现方法。还包括许多工具类的封装。
请各位大神多多指教,多多支持点个Star。

快速创建一个按钮,赋给实例的按钮,并实现点击事件:

  self.btn = [UIButton  zj_buttonWithTitle:@"评论列表"
                                  titleColor:kWhiteColor
                                   backColor:kOrangeColor
                                    fontSize:16 isBold:YES
                                cornerRadius:3
                                     supView:self.view constraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(chooseBtn.mas_centerY);
        make.left.equalTo(chooseBtn.mas_right).offset(50);
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(40);
    } touchUp:^(id sender) {
        NSLog(@"这是按钮的点击事件");
    }];

快速添加一个带placeholder的UITextView控件,并可以修改颜色

[UITextView zj_textViewWithFontSize:16
                              textColor:kOrangeColor
                            borderColor:k16RGBColor(0xCCCCCC)
                            borderWidth:0.5
                            cornerRadiu:4
                             placeColor:k16RGBColor(0xBBBBBB)
                              placeText:@"请输入..."
                              superView:self.view
                            constraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(20);
        make.right.mas_equalTo(-20);
        make.bottom.mas_equalTo(-100);
        make.height.mas_equalTo(180);
    }];

创建一个按钮,并且点击弹出一个地区选择器


[UIButton zj_buttonWithTitle:@"选择地区自定义" titleColor:kLightGrayColor
                       backColor:kWhiteColor fontSize:14 isBold:YES cornerRadius:4
                         supView:self.view constraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(lab3.mas_centerY);
        make.left.equalTo(lab3.mas_right).offset(30);
        make.width.mas_equalTo(140);
        make.height.mas_equalTo(35);
    } touchUp:^(id sender) {

        [ZJAddressPickerView zj_showAddressPickerWithShowType:ZJAddressPickerModeArea
                                                   dataSource:nil
                                              defaultSelected:nil
                                                 isAutoSelect:YES
                                                    lineColor:[UIColor redColor]
                                           selectRowTextColor:[UIColor orangeColor]
                                             selectRowBGColor:kRGBColor(230, 230, 230)
                                         confirmBtnTitleColor:kRGBColor(116, 80, 200)
                                          cancelBtnTitleColor:kRGBColor(116, 80, 200)
                                                    rowHeight:50.0
                                                  resultBlock:^(ZJProvinceModel *province, ZJCityModel *city, ZJAreaModel *area) {
                                                      lab3.text = [NSString stringWithFormat:@"%@-%@-%@",province.name,city.name,area.name];
                                                  } cancelBlock:^{

                                                  }];
    }];

在评论列表中浏览图片推荐使用 KSPhotoBrowser 第三方库浏览

/*

  • 使用 KSPhotoBrowser 浏览图片
  • 使用cocoaPods 导入
  • pod ‘KSPhotoBrowser’

     */

 

MVVM评论列表 Masonry自动布局简单朋友圈
ZJKitTool ZJKitTool

 

倒计时列表 WKWebView与 JS交互
ZJKitTool ZJKitTool

瀑布流

横向布局 垂直布局
ZJKitTool ZJKitTool

ZJPickerView
自定义日期时间、地区选择器,可以自定义数据,修改选择中行的文字颜色,背景颜色,按钮颜色,自动选择等等。

时间选择器 地区选择器
ZJKitTool ZJKitTool

License

ZJKitTool is released under the MIT license. See LICENSE for details.

 

Latest podspec

{
    "name": "ZJKitTool",
    "version": "2.2.0",
    "summary": "ZJKitToolu662fu4e00u4e2au5bf9UIKu5c01u88c5u7684u6846u67b6",
    "description": "ZJKitToolu662fu4e00u4e2au5bf9UIKu5c01u88c5u7684u6846u67b6,u6dfbu52a0u591au79cdu65b9u4fbfu7684u5de5u5177u7c7b,u5012u8ba1u65f6u3001 u81eau5b9au4e49PickerView u65f6u95f4u65e5u671fu9009u62e9u5668u7b49u6846u67b6u96c6u5408",
    "homepage": "https://github.com/Dzhijian/ZJKitTool",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "CoderDeng": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Dzhijian/ZJKitTool.git",
        "tag": "2.2.0"
    },
    "frameworks": "UIKit",
    "requires_arc": true,
    "source_files": "ZJKitTool/ZJHelperKit.h",
    "public_header_files": "ZJKitTool/ZJHelperKit.h",
    "dependencies": {
        "Masonry": [],
        "MBProgressHUD": [],
        "YYCategories": []
    },
    "subspecs": [
        {
            "name": "ZJGeneraMacros",
            "source_files": "ZJKitTool/ZJGeneraMacros/*.{h,m}"
        },
        {
            "name": "ZJControllerKit",
            "dependencies": {
                "Masonry": [],
                "ZJKitTool/ZJGeneraMacros": []
            },
            "source_files": "ZJKitTool/ZJControllerKit/*.{h,m}"
        },
        {
            "name": "ZJKit",
            "source_files": "ZJKitTool/ZJKit/*.{h,m}"
        },
        {
            "name": "ZJKitMasonry",
            "dependencies": {
                "Masonry": [],
                "ZJKitTool/ZJGeneraMacros": []
            },
            "source_files": "ZJKitTool/ZJKitMasonry/*.{h,m}"
        },
        {
            "name": "ZJCategory",
            "source_files": "ZJKitTool/ZJCategory/ZJCategory.h",
            "subspecs": [
                {
                    "name": "UIKit",
                    "dependencies": {
                        "MBProgressHUD": []
                    },
                    "source_files": "ZJKitTool/ZJCategory/UIKit/*.{h,m}"
                },
                {
                    "name": "Object",
                    "source_files": "ZJKitTool/ZJCategory/Object/*.{h,m}"
                }
            ]
        },
        {
            "name": "ZJPickerView",
            "source_files": "ZJKitTool/ZJPickerView/*.{h,m}",
            "resources": "ZJKitTool/ZJPickerView/ZJPickerViewBundle.bundle"
        },
        {
            "name": "ZJTool",
            "source_files": "ZJKitTool/ZJTool/*.{h,m}"
        }
    ]
}

Pin It on Pinterest

Share This