tags:

views:

170

answers:

1

Hi,

failed to compile cell.textLabel.lineBreakMode = UILineBreakModeWordWrap on iPhone, it does not recognize textLabel property. Could you let me know how to fix it?

+2  A: 

textLabel is a new property for UITableViewCells as of iPhone OS 3.0. Are you trying to compile against an older version of the SDK?

Jonathan Arbogast
yes, mine is version 2.2.1
ebaccount
You can get the equivalent functionality under 2.2.1 by using cell.lineBreakMode = UILineBreakModeWordWrap.
Jonathan Arbogast