iOS Layout Manager
Pull request Compare This branch is even with rkovacevic:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
RKLayout
RKLayoutExample
License
Readme.textile

Readme.textile

RKLayout

Simple layout manager for iOS.

How to add to your project

To use, just drag the RKLayout directory to your XCode project.

Features

  • 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

Usage

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.