UIView(Redbeard) Category Reference

Declared in UIView+Redbeard.h

Overview

UIView extension methods.

– initializeView

Initializes the view.

- (void)initializeView

Discussion

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

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

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

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.

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.

Declared In

UIView+Redbeard.h