Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deprecated warning message in UITableViewCell

setText is deprecated warning message displayed at UITableViewCell

[cell setText:animal.name];

when compiling. But program is running properly.

like image 510
susitha Avatar asked Jan 29 '26 06:01

susitha


1 Answers

Yes, setText: in UITableViewCell has been deprecated.

Use the following instead of that.

[cell.textLabel setText:animal.name];
like image 84
Ilanchezhian Avatar answered Jan 30 '26 19:01

Ilanchezhian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!