开发者

Warning Regarding the UITableviewcell

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜