user177893
user177893

Reputation: 145

Warning Regarding the UITableviewcell

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

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

how to remove this warning?????

Upvotes: 0

Views: 48

Answers (1)

bmalicoat
bmalicoat

Reputation: 2528

Try:

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

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

Upvotes: 2

Related Questions