TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Apache 2 |
ReleasedLast Release | Dec 2014 |
Maintained by ‘CUSLayout’.
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:
2.Drag and drop the CUSLayoutExample.xcodeproj file downloaded from github previously from Finder to your project (either root or under Frameworks)
3.In YOUR project configuration:
in the Build Phases, Add CUSLayout (the lib, not the example app) as a Target Dependency
in the Link Binary With Libraries section, add the libCUSLayout.a library
4.In YOUR Prefix.pch file, add:
#import “CUSLayout.h”
5.In YOUR project configuration, on the “Build Settings” tab
locate the “User Header Search Paths” setting, and set the Release value to "${PROJECT_DIR}/CUSLayout" (including quotes!) and check the “Recursive” check box.
platform:ios
pod "CUSLayout"
CUSFillLayout
CUSStackLayout
CUSLinnerLayout
CUSRowLayout
CUSTableLayout
CUSGridLayout
//only one code,auto set the frame of parent to the subview.
view.layoutFrame = [[CUSFillLayout alloc]init];
CUSLayout is licensed under the terms of the Apache License, version 2.0. Please see the LICENSE file for full details.
Contributions are totally welcome. We'll review all pull requests and if you send us a good one/are interested we're happy to give you push access to the repo. Or, you know, you could just come work with us.
Please pay attention to add Star, your support is my greatest motivation, thank you.