开发者

Warning Regarding the UITableviewcell

开发者 https://www.devze.com 2022-12-11 05:00 出处:网络
cell.text = [tableoptions objectAtIndex:indexPath.row]; when i write t开发者_如何学JAVAhis statement,I get warning like \'setText:\' is deprecated.
cell.text = [tableoptions objectAtIndex:indexPath.row];

when i write t开发者_如何学JAVAhis statement,I get warning like 'setText:' is deprecated.

how to remove this warning?????


Try:

cell.textLabel.text = [tableoptions objectAtIndex:indexPath.row];

The text property was deprecated and textLabel and detailedTextLabel were introduced. See Apple's Documentation.

0

精彩评论

暂无评论...
验证码 换一张
取 消