Git Product home page Git Product logo

cuslayout's Introduction

CUSLayout

ENGLISH

Open source release of automatic layout framework for iOS,which is simlar to Android,SWT,SWING API.It solves the problem of iPhone, iPhone5, iPad, resolution, rotation etc.

CUSLayout for iOS managed positioning mechanism, the iOS SDK provides absolute positioning is very inconvenient to use, in addition to the emergence of 4-inch screen of the iPhone and iPad to make iOS developer need to spend more time in the layout, however iOS6.0 AutoLayout the mechanism is disappointing, I refer to Android, SWT, Swing layout mechanism, the preparation of for iOS CUSLayout, use CUSLayout has the following advantages:
1.Simplify coding, you do not need to take into account the pixel level, only for regional programming, which greatly improves the efficiency of programming
2.Good readability, layout type can be a preliminary understanding of layout intent and child controls roughly placed, eliminating the need for a very tedious restore coordinate steps
3.When the the UIView container Flip, size change, supporting multiple resolutions, automatic processing
4.UIView category which makes it easy to create layout constraints in old code
5.The API is simple and easy-to-use, low cost learning through the sample program to preliminary master

Follow-up will launch a new type of layout and perfect layout algorithm, please pay attention to add Star, your support is my greatest motivation, thank you.
To on github demand, advice and bugs
中文

CUSLayout为iOS下提供托管定位机制,系统提供的绝对定位方式极不方便使用,另外iPhone的4寸屏幕的出现和iPad令iOS开发者在布局需要花更多的时间,然而iOS6.0提供的AutoLayout机制令人失望,所以笔者参考Android、SWT、SWING等布局机制,编写了适合iOS下使用的CUSLayout,使用CUSLayout有以下几个好处:
1、简化编码,不需要考虑到像素级别,仅针对区域性编程,极大的提高编程效率
2、良好的可读性,通过布局类型即可初步了解布局意图和子控件大致摆放方式,省去了令人繁琐的还原坐标的步骤
3、在UIView容器翻转、大小变化、支持多种分辨率时,自动处理
4、CUSLayou基于UIView布局,可完美迁移到任何应用种,不会影响原有应用
5、API简单易用,学习成本很低,通过样例程序,即可初步掌握
https://github.com/JJMM/CUSLayout
心动不如行动,搞起!
后续会推出新的布局类型及完善布局算法,请关注add star,多谢支持。

image

Plese look the WiKi to use CUSLayout.
https://github.com/JJMM/CUSLayout/wiki

cuslayout's People

Contributors

jjmm avatar

Watchers

william avatar

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.