Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use of undeclared identifier 'NSLineBreakByWordWrapping' using xCode 4.3.3

I get "Use of undeclared identifier 'NSLineBreakByWordWrapping'" on xCode 4.3.3 which doesn't appear on the beta one.

It happens on this code:

[text sizeWithFont:font constrainedToSize:textConstraintRect.size lineBreakMode: NSLineBreakByWordWrapping].height);

What do I need to import to solve this one?

Please help,

like image 257
Idan Avatar asked Jul 09 '12 17:07

Idan


1 Answers

Or NSLineBreakMode.ByWordWrapping in swift

like image 194
Juan Carlos Ospina Gonzalez Avatar answered Sep 17 '22 23:09

Juan Carlos Ospina Gonzalez