Enumeration: UIViewContentMode

Overview

Specifies how a view adjusts its content when its size changes.

Constant Summary

UIViewContentModeScaleToFill

Scales the content to fit the size of itself by changing the aspect ratio of the content if necessary.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeScaleAspectFit

Scales the content to fit the size of the view by maintaining the aspect ratio. any remaining area of the view’s bounds is transparent. available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeScaleAspectFill

Scales the content to fill the size of the view. some portion of the content may be clipped to fill the view’s bounds.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeRedraw

Redisplays the view when the bounds change by invoking the setneedsdisplay method.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeCenter

Centers the content in the view’s bounds, keeping the proportions the same.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeTop

Centers the content aligned at the top in the view’s bounds.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeBottom

Centers the content aligned at the bottom in the view’s bounds.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeLeft

Aligns the content on the left of the view.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeRight

Aligns the content on the right of the view.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeTopLeft

Aligns the content in the top-left corner of the view.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeTopRight

Aligns the content in the top-right corner of the view.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeBottomLeft

Aligns the content in the bottom-left corner of the view.available in ios 2.0 and later.declared in uiview.h.

UIViewContentModeBottomRight

Aligns the content in the bottom-right corner of the view.available in ios 2.0 and later.declared in uiview.h.