简体   繁体   English

UITableViewCell中不推荐使用的警告消息

[英]Deprecated warning message in UITableViewCell

setText is deprecated warning message displayed at UITableViewCell UITableViewCell显示不推荐使用的setText警告消息

[cell setText:animal.name];

when compiling. 编译时 But program is running properly. 但程序运行正常。

Yes, setText: in UITableViewCell has been deprecated. 是的, setText:UITableViewCell中已被弃用。

Use the following instead of that. 使用以下代替。

[cell.textLabel setText:animal.name];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM