Skip to content

Functions

William Towe edited this page May 10, 2017 · 1 revision

KDIFunctions.h

KDICGSizeAdjustedForMainScreenScale returns a size appropriately scaled for the device screen, which is useful when dealing with images or APIs that expect a size to be specified in pixels instead of points. For example, KDICGSizeAdjustedForMainScreenScale(CGSizeMake(16,16)) would return CGSizeMake(32,32) on a retina device.

Clone this wiki locally