UIView(Extensions) Category Reference

Declared in UIView+Extensions.h

Overview

UIView extension methods.

– removeAllAnimations:

Cancels all animations on this view and if specified, it’s subviews too.

- (void)removeAllAnimations:(BOOL)includingSubviews

Parameters

includingSubviews

Whether or not to cancel the animations on all descendent views too.

Declared In

UIView+Extensions.h

– snapshotOfRect:

Gets a snapshot of the given frame of this UIView.

- (UIImage *)snapshotOfRect:(CGRect)rect

Parameters

rect

The frame of the UIView to take a snapshot of.

Return Value

The snapshot UIImage object.

Declared In

UIView+Extensions.h

– statusBarFrame

Gets the absolute frame of the status bar.

- (CGRect)statusBarFrame

Return Value

The CGRect frame value.

Declared In

UIView+Extensions.h

– keyboardFrame

Gets the absolute frame of the keyboard.

- (CGRect)keyboardFrame

Return Value

The CGRect frame value.

Declared In

UIView+Extensions.h

– insetsForStatusBar

The absolute insets that would avoid the status bar.

- (UIEdgeInsets)insetsForStatusBar

Return Value

The UIEdgeInsets insets value.

Declared In

UIView+Extensions.h

– insetsForKeyboard

The absolute insets that would avoid the keyboard.

- (UIEdgeInsets)insetsForKeyboard

Return Value

The UIEdgeInsets insets value.

Declared In

UIView+Extensions.h

– insetsForStatusBarAndKeyboard

The absolute insets that would avoid both the status bar and keyboard.

- (UIEdgeInsets)insetsForStatusBarAndKeyboard

Return Value

The UIEdgeInsets insets value.

Declared In

UIView+Extensions.h

– statusBarFrameInView

Gets the frame in this UIView that the status bar occupies.

- (CGRect)statusBarFrameInView

Return Value

The CGRect frame value.

Declared In

UIView+Extensions.h

– keyboardFrameInView

Gets the frame in this UIView that the keyboard occupies.

- (CGRect)keyboardFrameInView

Return Value

The CGRect frame value.

Declared In

UIView+Extensions.h

– insetsForStatusBarInView

The insets in the bounds of this UIView to avoid the space in this view that the status bar occupies.

- (UIEdgeInsets)insetsForStatusBarInView

Return Value

The UIEdgeInsets insets value.

Declared In

UIView+Extensions.h

– insetsForKeyboardInView

The insets in the bounds of this UIView to avoid the space in this view that the keyboard occupies.

- (UIEdgeInsets)insetsForKeyboardInView

Return Value

The UIEdgeInsets insets value.

Declared In

UIView+Extensions.h

– insetsForStatusBarAndKeyboardInView

The insets in the bounds of this UIView to avoid the space in this view that both the status bar and keyboard occupy.

- (UIEdgeInsets)insetsForStatusBarAndKeyboardInView

Return Value

The UIEdgeInsets insets value.

Declared In

UIView+Extensions.h