Coder Social home page Coder Social logo

mlchainpoddemo's Introduction

#1.安装 在podFile中添加 pod 'MLChain',并安装完成后打开。 #2.解锁链式方法容器文件 由于链式方法需要根据项目中的类已实现的方法生成方法列表,笔者将链式方法放在固定路径,并把所有的链式方法都放在MLChainContainer.h和MLChainContainer.m文件中。 须解锁文件图示 对MLChainContainer文件解锁 #3.设置项目地址 在项目的info.plist文件中,设置项目地址用于链式方法的写入(第四步操作的主要依据) key:ProjectDirectory value:$(SRCROOT) plist文件添加键值对 #4.生成链式方法 导入MLChain的头文件,然后调用生成方法,运行一遍,你要的链式方法都在MLChainContainer.h和MLChainContainer.m文件中 因为链式方法数量大且出错时难以修复,笔者在生成时做了备份。笔者在运行时会在电脑桌面也生成一份,并将旧的一份丢到回收站。如果cocoaPods需要更新,则需要将复制内容到MLChainContainer.h和MLChainContainer.m文件。 调用生成方法 #5.开始使用 链式方法生成一次就可以使用,下次使用除非有新方法更新。

开始使用

UIView *view = UIView.mlc_make.frame_(100, 100, 100, 100).backgroundColor([UIColor cyanColor]).chainObject;
[self.view addSubview:view];

运行效果

mlchainpoddemo's People

Stargazers

ccSunday avatar

Watchers

James Cloos avatar  avatar

Forkers

sunday1990

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.