iOS Question Multi-Line Button Text in iOS

Jim McDougal

Member
Licensed User
Trying to get button text on two lines using the Multiline Editor tool in B4i Designer, but no luck. Also, a longer single line will not wrap. Since I am lazy and there's probably a simple solution, I will post this question instead.

🤔
 

Matt S.

Member
Licensed User
If I remember correctly, you need to do it by code:
B4X:
Button1.As(Button).CustomLabel.Multiline = True
Exactly. And the same code can be used to set custom font:
B4i:
myButton.CustomLabel.Font = Font.CreateNew2(myFontName,myFontSize)
 
Upvote 0
Top