Contents

maximumSize

A maximum size for the image.

Declaration

@property (nonatomic) CGSize maximumSize;

Discussion

The default value is CGSizeZero. Setting a width or height of zero makes the size unconstrained on that dimension. If the image exceeds maximumSize size on either dimension, the view reduces its size proportionately, maintaining aspect ratio.