Difference b / w Redraw and scale to fill mode in UIImageView?

UIImageView has different mode settings. In an interface builder such as Aspect Fit, Aspect Fill. Can someone tell me what is the difference between these two modes: Scale to fill VS Redraw ?

+5
source share
1 answer

UIViewContentModeScaleToFill

For the first time drawRect:, a view is called up and visualized. Later, when the geometry changes, drawRect:it is not called, but the already displayed content is scaled to draw the view.

UIViewContentModeRedraw

, , drawRect:, . , , , . , drawRect:. , UIViewContentModeRedraw, , setNeedsDisplay, .

, .

+22

All Articles