UIView(Redbeard) Category Reference
Declared in | UIView+Redbeard.h |
---|
– initializeView
Initializes the view.
- (void)initializeView
Discussion
Initializes the view.
Never call this directly, it should be implemented to set up the view. It is called directly by initWithFrame: and initWithCoder:.
Declared In
UIView+Redbeard.h
needsLayout
Whether or not setNeedsLayout was called and layoutSubviews has not yet been called.
@property (nonatomic, readonly) BOOL needsLayout
Discussion
Whether or not setNeedsLayout was called and layoutSubviews has not yet been called.
Declared In
UIView+Redbeard.h
– invalidateFrame
Notifies the super views in the heirarchy that this view needs its frame recalculating. For example, it requires a different size.
- (void)invalidateFrame
Discussion
Notifies the super views in the heirarchy that this view needs its frame recalculating. For example, it requires a different size.
Declared In
UIView+Redbeard.h
– invalidateFrameWithImmediateLayout
Notifies the super views in the heirarchy that this view needs its frame recalculating with an immediate layout.
- (void)invalidateFrameWithImmediateLayout
Discussion
Notifies the super views in the heirarchy that this view needs its frame recalculating with an immediate layout.
Declared In
UIView+Redbeard.h
– boundsDidChangeFrom:toBounds:
Called when the view’s bounds are changed.
- (void)boundsDidChangeFrom:(CGRect)previousBounds toBounds:(CGRect)bounds
Parameters
previousBounds |
The previous bounds. |
---|---|
bounds |
The new and current bounds. |
Discussion
Called when the view’s bounds are changed.
Declared In
UIView+Redbeard.h
– childViewFrameDidInvalidate:requiresImmediateLayout:
Called when the frame of a child view has been invalidated.
- (void)childViewFrameDidInvalidate:(nonnull UIView *)childView requiresImmediateLayout:(BOOL)requiresImmediateLayout
Parameters
childView |
The child view who’s frame is now invalidated. |
---|---|
requiresImmediateLayout |
Whether or not an immediate layout is required. |
Discussion
Called when the frame of a child view has been invalidated.
Declared In
UIView+Redbeard.h