Declared in UIView+Positioning.h
UIView+Positioning.m

Overview

Additional functionality dealing with UIView positioning.

Tasks

Properties

centerX

The views center x position.

@property (nonatomic, assign) CGFloat centerX

Declared In

UIView+Positioning.h

centerY

The views center y position.

@property (nonatomic, assign) CGFloat centerY

Declared In

UIView+Positioning.h

height

The height of the view’s frame.

@property (nonatomic, assign) CGFloat height

Declared In

UIView+Positioning.h

maxX

The max x origin of the view’s frame.

@property (nonatomic, assign) CGFloat maxX

Declared In

UIView+Positioning.h

maxY

The max y origin of the view’s frame.

@property (nonatomic, assign) CGFloat maxY

Declared In

UIView+Positioning.h

middle

The coordinate at the middle of the view

@property (nonatomic, readonly) CGPoint middle

Declared In

UIView+Positioning.h

minX

The x origin of the view’s frame.

@property (nonatomic, assign) CGFloat minX

Declared In

UIView+Positioning.h

minY

The y origin of the view’s frame.

@property (nonatomic, assign) CGFloat minY

Declared In

UIView+Positioning.h

origin

The origin of the view’s frame.

@property (nonatomic, assign) CGPoint origin

Declared In

UIView+Positioning.h

originX

The x origin of the view’s frame.

@property (nonatomic, assign) CGFloat originX

Declared In

UIView+Positioning.h

originY

The max y origin of the view’s frame.

@property (nonatomic, assign) CGFloat originY

Declared In

UIView+Positioning.h

size

The size of the view’s frame.

@property (nonatomic, assign) CGSize size

Declared In

UIView+Positioning.h

width

The width of the view’s frame.

@property (nonatomic, assign) CGFloat width

Declared In

UIView+Positioning.h

Instance Methods

convertCenterToView:

Converts the view’s center coordinate to a view.

- (CGPoint)convertCenterToView:(UIView *)view

Parameters

view

The given view to translate to.

Return Value

The point the correlates to the center of the view on the given view.

Declared In

UIView+Positioning.h

convertFrameToView:

Converts the view’s frame to a view.

- (CGRect)convertFrameToView:(UIView *)view

Parameters

view

The given view to translate to.

Return Value

The CGRect the correlates to the center of the view on the given view.

Declared In

UIView+Positioning.h

moveToBackOfView:

Moves the view to the back of a different superview while maintaining its overall position.

- (void)moveToBackOfView:(UIView *)view

Parameters

view

The view that will hold the view.

Declared In

UIView+Positioning.h

moveToView:

Moves the view to a different superview while maintaining its overall position.

- (void)moveToView:(UIView *)view

Parameters

view

The view that will hold the view.

Declared In

UIView+Positioning.h