susitha
susitha

Reputation: 467

Deprecated warning message in UITableViewCell

setText is deprecated warning message displayed at UITableViewCell

[cell setText:animal.name];

when compiling. But program is running properly.

Upvotes: 2

Views: 290

Answers (1)

Ilanchezhian
Ilanchezhian

Reputation: 17478

Yes, setText: in UITableViewCell has been deprecated.

Use the following instead of that.

[cell.textLabel setText:animal.name];

Upvotes: 12

Related Questions