UIView(Positioning) Category Reference
Declared in | UIView+Positioning.h UIView+Positioning.m |
Tasks
-
– convertCenterToView:
-
– convertFrameToView:
-
– moveToView:
-
– moveToBackOfView:
-
middle
property -
width
property -
height
property -
size
property -
origin
property -
minX
property -
minY
property -
maxX
property -
maxY
property -
originX
property -
originY
property -
centerX
property -
centerY
property
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
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