Search code examples
iphoneios6xcode4.5

Deprecated UILineBreakModeCharacterWrap Warning


I am getting a warning of deprecated in ios6 when using

 label.lineBreakMode=UILineBreakModeCharacterWrap;

Is there any other method for this?


Solution

  • from the documentation, use NSLineBreakByCharWrapping to eliminate the warning.