GithubHelp home page GithubHelp logo

2324964335 / cocoapodslibrary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zac-wang/cocoapodslibrary

0.0 1.0 0.0 33.13 MB

对原生api进行功能模块化封装,降低多个项目维护难度,提高工作效率

License: MIT License

Objective-C 98.57% C 0.93% Ruby 0.50%

cocoapodslibrary's Introduction

ZCEasyLibrary

对iOS常用功能进行封装,提交开发效率,降低多项目的维护难度

Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :iOS, '8.0'

target 'TargetName' do
pod 'ZCEasyLibrary', '~>2.0.1'
end

代码使用示例

//无限滚动Banner
ZCBannerView *banerScrollView = [[ZCBannerView alloc] initWithFrame:CGRectMake(0, 240, self.view.frame.size.width, 200)];
[self.view addSubview:banerScrollView];
[self.banerScrollView zc_initBanner:[[NSBundle mainBundle] pathsForResourcesOfType:@"png" inDirectory:@"main_banner.bundle"]];
self.banerScrollView.zc_selectImageView = ^(UIImageView *imgView, NSInteger index) {
    NSLog(@"您选中了第%ld张banner", (long)index);
};
//设置圆角
[view zc_drawCornerRadius:0 borderWidth:1 borderColor:UIColorFromRGB(0xa3b1c4)];
//根据view样式生成对应的图片
UIImage *img = view.zc_screenCapture;

更多功能请查看framework头文件

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.