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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -