Declared in UIWindow+BFKit.h

Overview

This category adds some useful methods to UIWindow

BFShowTouchOnScreen: Show touch on screen

BFHideTouchOnScreen: Hide touch on screen

Tasks

Instance Methods

activateTouch

- (void)activateTouch
Discussion

Show touch on screen. (Use BFShowTouchOnScreen macro)

Declared In

UIWindow+BFKit.h

deactivateTouch

- (void)deactivateTouch
Discussion

Hide touch on screen. (Use BFHideTouchOnScreen macro)

Declared In

UIWindow+BFKit.h

takeScreenshot

- (UIImage *_Nonnull)takeScreenshot
Discussion

Take a screenshot of current window, without saving it

Return Value

Returns the screenshot as an UIImage

Declared In

UIWindow+BFKit.h

takeScreenshotAndSave:

- (UIImage *_Nonnull)takeScreenshotAndSave:(BOOL)save
Discussion

Take a screenshot of current window and choose if save it or not

Parameters

save

YES to save, NO to don’t save

Return Value

Returns the screenshot as an UIImage

Declared In

UIWindow+BFKit.h

takeScreenshotWithDelay:save:completion:

- (void)takeScreenshotWithDelay:(CGFloat)delay save:(BOOL)save completion:(void ( ^ _Nullable ) ( UIImage *_Nonnull screenshot ))completion
Discussion

Take a screenshot of current window, choose if save it or not after a delay

Parameters

delay

The delay, in seconds

save

YES to save, NO to don’t save

completion

Completion handler with the UIImage

Declared In

UIWindow+BFKit.h