Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (24 sloc) 0.915 kB
//
// DTUtils.h
// DTFoundation
//
// Created by Oliver Drobnik on 7/18/10.
// Copyright 2010 Drobnik.com. All rights reserved.
//
/**
Various CoreGraphics-related utility functions
*/
CGSize sizeThatFitsKeepingAspectRatio(CGSize originalSize, CGSize sizeToFit);
/**
Replacement for buggy CGSizeMakeWithDictionaryRepresentation
@param dict The dictionary containing an encoded `CGSize`
@param size The `CGSize` to decode from the dictionary
@see http://www.cocoanetics.com/2012/09/radar-cgrectmakewithdictionaryrepresentation/
*/
BOOL DTCGSizeMakeWithDictionaryRepresentation(NSDictionary *dict, CGSize *size);
/**
Replacement for buggy CGSizeCreateDictionaryRepresentation
@param size The `CGSize` to encode in the returned dictionary
@see http://www.cocoanetics.com/2012/09/radar-cgrectmakewithdictionaryrepresentation/
*/
NSDictionary *DTCGSizeCreateDictionaryRepresentation(CGSize size);
Jump to Line
Something went wrong with that request. Please try again.