Latest2.1.8
Homepagehttps://github.com/Dzhijian/ZJKitTool
LicenseMIT
Platformsios 8.0, requires ARC
DependenciesMasonry, MBProgressHUD, YYCategories
FrameworksUIKit
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:[UIColor orangeColor] 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);
}];

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

/*

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

     */

 

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

 

倒计时列表WKWebView与 JS交互
ZJKitToolZJKitTool

瀑布流

横向布局垂直布局
ZJKitToolZJKitTool

License

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

 

Latest podspec

{
    "name": "ZJKitTool",
    "version": "2.1.8",
    "summary": "ZJKitToolu662fu4e00u4e2au5bf9UIKu5c01u88c5u7684u6846u67b6",
    "description": "ZJKitToolu662fu4e00u4e2au5bf9UIKu5c01u88c5u7684u6846u67b6,u6dfbu52a0u591au79cdu65b9u4fbfu7684u5de5u5177u7c7b",
    "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.1.8"
    },
    "frameworks": "UIKit",
    "requires_arc": true,
    "source_files": "ZJKitTool/ZJHelperKit.h",
    "public_header_files": "ZJKitTool/ZJHelperKit.h",
    "dependencies": {
        "Masonry": [],
        "MBProgressHUD": [],
        "YYCategories": []
    },
    "subspecs": [
        {
            "name": "ZJGenneralMacros",
            "source_files": "ZJKitTool/ZJGenneralMacros/*.{h,m}"
        },
        {
            "name": "ZJControllerKit",
            "dependencies": {
                "Masonry": []
            },
            "source_files": "ZJKitTool/ZJControllerKit/*.{h,m}"
        },
        {
            "name": "ZJKit",
            "source_files": "ZJKitTool/ZJKit/*.{h,m}"
        },
        {
            "name": "ZJKitMasonry",
            "dependencies": {
                "Masonry": []
            },
            "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": "ZJTool",
            "source_files": "ZJKitTool/ZJTool/*.{h,m}"
        }
    ]
}

Pin It on Pinterest

Share This