Why scale to fill give bigger image than UIImageVIew size? (using swift)

前端 未结 5 1077
天涯浪人
天涯浪人 2021-01-31 18:23

I\'m trying to showing a list of place name, including it\'s photo using PFQueryTableViewController. It\'s included in ParseUI SDK from parse.com

I have man

5条回答
  •  隐瞒了意图╮
    2021-01-31 18:53

    If you want to maintain the aspect ratio with varying width ,then use AspectFill and also use the imageview property clipstoBounds,it will not spread the imageview beyond the frame

提交回复
热议问题