tags:

views:

19

answers:

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

when i write this statement,I get warning like 'setText:' is deprecated.

how to remove this warning?????

+2  A: 

Try:

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

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

bmalicoat