ios - UILabel doesn't fulfill numberOfLines -


i have address label can 2 or 3 lines depending on user's address:

123 street apt 5b mycity, mystate 12345 

or

123 street mycity, mystate 12345 

i make simple uilabel:

let label_addr = uilabel() label_addr.numberoflines = 3 

i expect 3 lines tall, in second case. however, trims down 2 lines if don't use filler "\n". there way make respect numberoflines property?


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -