xcode - Resize label to fit text amount - Swift -
hey :) have label , need make width of label smaller or larger accourding text amount, , found how adjust text fit size how adjust size fit text, ideas ?
you'll want this:
mylabel.sizetofit()
as seen here: https://developer.apple.com/documentation/uikit/uiview/1622630-sizetofit
this update label's frame fit content. can place or make edits after want.
Comments
Post a Comment