Simple layout manager for iOS.
How to add to your project
To use, just drag the RKLayout directory to your XCode project.
- Stack views horizontally, vertically or in a grid
- Set constant spacing between views, or stretch the spacing, so that the whole container view is filled
- Align views relative to container (top, bottom, center, left, right, and all combinations)
- Animations are supported for all properties
See RKLayoutExample project for usage.
Basic idea: You create an istance of RKLayout, set mode (horizontal, vertical or grid), and add subviews to it. Subview positions will then automatically be adjusted according to the selected mode. Note that subview size will never be changed by the layout manager.