Using the undeclared identifier "NSLineBreakByWordWrapping" using xCode 4.3.3

I get "Using an undeclared identifier" NSLineBreakByWordWrapping "on xCode 4.3.3, which does not appear in beta.

This happens by this code:

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

What do I need to import to solve this problem?

Please, help,

+5
source share
2 answers

Use UILineBreakModeWordWrapinstead.

+7
source

Or NSLineBreakMode.ByWordWrappingin fast

+8
source