Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f41913bcaf
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (37 sloc) 1.189 kb
//
// UIScreen+SSToolkitAdditions.h
// SSToolkit
//
// Created by Sam Soffes on 2/4/11.
// Copyright 2011 Sam Soffes. All rights reserved.
//
/**
Provides extensions to `UIScreen` for various common tasks.
*/
@interface UIScreen (SSToolkitAdditions)
///---------------------------
/// @name Accessing the Bounds
///---------------------------
/**
Returns the bounds of the screen for the current device orientation.
@return A rect indicating the bounds of the screen.
@see boundsForOrientation:
*/
- (CGRect)currentBounds;
/**
Returns the bounds of the screen for a given device orientation. `UIScreen`'s `bounds` method always returns the bounds
of the screen of it in the portrait orientation.
@param orientation The orientation to get the screen's bounds.
@return A rect indicating the bounds of the screen.
@see currentBounds
*/
- (CGRect)boundsForOrientation:(UIInterfaceOrientation)orientation;
///------------------------
/// @name Screen Attributes
///------------------------
/**
Returns a Boolean indicating if the screen is a Retina display.
@return A Boolean indicating if the screen is a Retina display.
*/
- (BOOL)isRetinaDisplay;
@end
Jump to Line
Something went wrong with that request. Please try again.