Code Monkey home page Code Monkey logo

Comments (1)

youngsoft avatar youngsoft commented on May 17, 2024

非常好的建议,OC版本在开始推出的时候,有很多命名包括使用方法都不是很规范。后来也接收了很多的建议,以及做了很多的改动。一个原因是有了一定的用户使用基础,无法像swift那样新版本可以把老版本的东西推翻重来。目的还是为了兼容性考虑。不过在最近的几个版本里面都已经将很多方法名进行了改进和优化了。

至于你说的左间距和右间距宽度和高度的设置都分别提供了比如myLeft, myRight, myWidth, myHeight等相应的属性来进行设置。

另外使用风格上还是遵循苹果的标准采用属性设置为主,而不是masonry所提供的block和链式编程方式。(个人不是很推崇所谓的block以及链式编程)。同时为了兼容那些masonry的爱好者,MyLayout也提供了一个myMaker之类的语法糖设置方法,这个和masonry是非常相似的。

最后要说的是后续的swift版本TangramKit中对很多属性和方法名的使用进行很多的优化和统一,而且使用起来也非常的简单和清楚。

在后面的OC版本我将会继续对方法进行优化和简化。。多谢你的提议。。

from mylinearlayout.

Related Issues (20)

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.