Declared in UIScreen+BFKit.h

Overview

This category adds some useful methods to UIScreen

SCREEN_WIDTH: Get the screen width

SCREEN_HEIGHT: Get the screen height

Tasks

Class Methods

brightness

+ (CGFloat)brightness
Discussion

Get the device’s brightness

Return Value

Returns the device’s brightness

Declared In

UIScreen+BFKit.h

isRetina

+ (BOOL)isRetina
Discussion

Check if the current device has a Retina display

Return Value

Returns YES if it has a Retina display, NO if not

Declared In

UIScreen+BFKit.h

isRetinaHD

+ (BOOL)isRetinaHD
Discussion

Check if the current device has a Retina display

Return Value

Returns YES if it has a Retina HD display, NO if not

Declared In

UIScreen+BFKit.h

setBrightness:

+ (void)setBrightness:(CGFloat)brightness
Discussion

Set the new device’s brightness

Parameters

newLightFont

The new brightness

Declared In

UIScreen+BFKit.h

Instance Methods

fixedScreenSize

- (CGSize)fixedScreenSize
Discussion

Returns the fixed screen size, based on device orientation

Return Value

Returns a GCSize with the fixed screen size

Declared In

UIScreen+BFKit.h