Controlling Dynamic Text in Swift application

87 Views Asked by At

I was wondering what else can we control using Dynamic Text in iOS devices other than UILabels?

Is there a way to adjust UIImageViews as well for instance? Or any other UIViews ?

1

There are 1 best solutions below

0
Andrew Castro On

If you are going to use a cell in your UITableViewCell, use automatic dimension, for example:

self.yourtableview.rowHeight = UITableViewAutomaticDimension self.yourtableview.estimatedRowHeight = X

This way your uilabel can be dynamic, your UIView will also be dynamic, in a UIImageView, auto-layout with aspect ratio to fit the cell's height/width.