uiviewcontentmode

Difference between UIViewContentModeScaleAspectFit and UIViewContentModeScaleToFill?

▼魔方 西西 提交于 2019-11-26 03:27:18
问题 what is the difference between UIViewContentModeScaleAspectFit and UIViewContentModeScaleToFill ...? 回答1: If you are talking about UIViewContentMode , the following is from the Doc. UIViewContentModeScaleToFill Scales the content to fit the size of itself by changing the aspect ratio of the content if necessary. 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.