UIView(Positioning) Category Reference

Declared in UIView+Positioning.h

Overview

UIView positioning methods.

– moveToVertical:horizontal:autosize:

Sizes and aligns the view within it’s parent view’s bounds.

- (void)moveToVertical:(RBVerticalAlignment)vp horizontal:(RBHorizontalAlignment)hp autosize:(BOOL)autosize

Parameters

vp

The vertical alignment to align to.

hp

The horizontal alignment to align to.

autosize

Whether or not to autosize the view.

Declared In

UIView+Positioning.h

– moveToVertical:horizontal:autosize:withMargin:

Sizes and aligns the view within it’s parent view’s bounds with a margin.

- (void)moveToVertical:(RBVerticalAlignment)vp horizontal:(RBHorizontalAlignment)hp autosize:(BOOL)autosize withMargin:(UIEdgeInsets)margin

Parameters

vp

The vertical alignment to align to.

hp

The horizontal alignment to align to.

autosize

Whether or not to autosize the view.

margin

The margin to maintain around the view within it’s parent view’s bounds.

Declared In

UIView+Positioning.h

– moveToVertical:horizontal:withSize:

Aligns the view within it’s parent view’s bounds with the given size.

- (void)moveToVertical:(RBVerticalAlignment)vp horizontal:(RBHorizontalAlignment)hp withSize:(CGSize)size

Parameters

vp

The vertical alignment to align to.

hp

The horizontal alignment to align to.

size

The size of the view.

Declared In

UIView+Positioning.h

– moveToVertical:horizontal:withSize:withMargin:

Aligns the view within it’s parent view’s bounds with the given size and a margin.

- (void)moveToVertical:(RBVerticalAlignment)vp horizontal:(RBHorizontalAlignment)hp withSize:(CGSize)size withMargin:(UIEdgeInsets)margin

Parameters

vp

The vertical alignment to align to.

hp

The horizontal alignment to align to.

size

The size of the view.

margin

The margin to maintain around the view within it’s parent view’s bounds.

Declared In

UIView+Positioning.h

– moveToFrame:vertical:horizontal:autosize:

Sizes and aligns the view within the given frame.

- (void)moveToFrame:(CGRect)frame vertical:(RBVerticalAlignment)vp horizontal:(RBHorizontalAlignment)hp autosize:(BOOL)autosize

Parameters

frame

The frame to position the view inside of.

vp

The vertical alignment to align to.

hp

The horizontal alignment to align to.

autosize

Whether or not to autosize the view.

Declared In

UIView+Positioning.h

– moveToFrame:vertical:horizontal:autosize:withMargin:

Sizes and aligns the view within the given frame.

- (void)moveToFrame:(CGRect)frame vertical:(RBVerticalAlignment)vp horizontal:(RBHorizontalAlignment)hp autosize:(BOOL)autosize withMargin:(UIEdgeInsets)margin

Parameters

frame

The frame to position the view inside of.

vp

The vertical alignment to align to.

hp

The horizontal alignment to align to.

autosize

Whether or not to autosize the view.

margin

The margin to maintain around the view within the given frame.

Declared In

UIView+Positioning.h

– moveToFrame:vertical:horizontal:withSize:

Sizes and aligns the view within the given frame with a size.

- (void)moveToFrame:(CGRect)frame vertical:(RBVerticalAlignment)vp horizontal:(RBHorizontalAlignment)hp withSize:(CGSize)size

Parameters

frame

The frame to position the view inside of.

vp

The vertical alignment to align to.

hp

The horizontal alignment to align to.

size

The size of the view.

Declared In

UIView+Positioning.h

– moveToFrame:vertical:horizontal:withSize:withMargin:

Sizes and aligns the view within the given frame with a size and margin.

- (void)moveToFrame:(CGRect)frame vertical:(RBVerticalAlignment)vp horizontal:(RBHorizontalAlignment)hp withSize:(CGSize)size withMargin:(UIEdgeInsets)margin

Parameters

frame

The frame to position the view inside of.

vp

The vertical alignment to align to.

hp

The horizontal alignment to align to.

size

The size of the view.

margin

The margin to maintain around the view within the given frame.

Declared In

UIView+Positioning.h