I am Getting warning 'setLineBreakMode: is deprecated: first deprecated in iOS 3.0' any alternate for this?

128 Views Asked by At

I am using react native when i run the project from xCode i see the warning message setLineBreakMode: is Deprecated first deprecated in iOS 3.0. here is the line i used the setLineBreakMode in my code

[clearButton setLineBeakMode:NSLineBreakByClipping];

Any alternate or solution's welcomed

1

There are 1 best solutions below

0
Frankenstein On

Try this:

button.titleLabel?.lineBreakMode = .byClipping