Difference between UIViewContentModeScaleAspectFit and UIViewContentModeScaleToFill?

Madhumitha picture Madhumitha · Feb 4, 2011 · Viewed 96.1k times · Source

what is the difference between UIViewContentModeScaleAspectFit and UIViewContentModeScaleToFill...?

Answer

erkanyildiz picture erkanyildiz · Jul 10, 2014

You can see the differences between the content modes here:

enter image description here

Redraw mode works as Scale to Fill mode. But there is a difference in how they are drawn when view geometry changes. Scale to Fill mode uses already rendered content while Redraw mode renders the content again.