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.
精彩评论