Skip to content
forked from JJMM/CUSLayout

iOS Layout Manager.Open source auto layout Manager,which is similar to Android,SWT,SWING API.

Notifications You must be signed in to change notification settings

shitoupai/CUSLayout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

iOS Layout Manager.Open source auto layout Manager,which is similar to Android,SWT,SWING API.

Resources

Stars

Watchers

Forks

Packages

No packages published