Listen for font reductions on iOS -
this question has answer here:
when use uilabel
, can set adjustsfontsizetofitwidth along appropriate scale factor.
how can notified when scales down? use-case when 1 label down-sizes, others around uniformity.
there no observation mechanism, you'd need calculate size required fit text in available space , use size on all.
the alternative use autolayout allow text wrap , doesn't need scale down.
Comments
Post a Comment