Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deprecated UILineBreakModeCharacterWrap Warning

I am getting a warning of deprecated in ios6 when using

 label.lineBreakMode=UILineBreakModeCharacterWrap;

Is there any other method for this?

like image 851
Bond Avatar asked Oct 25 '12 14:10

Bond


2 Answers

from the documentation, use NSLineBreakByCharWrapping to eliminate the warning.

like image 52
Singh Avatar answered Nov 12 '22 20:11

Singh


Use NSLineBreakByCharWrapping instead. The documentation for UILineBreakModeCharacterWrap points this out.

like image 28
Mark Granoff Avatar answered Nov 12 '22 21:11

Mark Granoff