Strong Like Bull
Strong Like Bull

Reputation: 11317

Why does adding a cell image to a UITableViewCell gives a warning?

cell.image = [UIImage imageNamed:@"faxicon.png"];

Warning is: setImage is deprecated.

Can I use another way?

Thanks

Upvotes: 0

Views: 180

Answers (2)

Rahul Vyas
Rahul Vyas

Reputation: 28730

If it is deprecated then read the documentation there is already a solution.

Upvotes: 0

Matthias Bauch
Matthias Bauch

Reputation: 90117

the image property was deprecated in iOS3.0.

try cell.imageView.image = [UIImage imageNamed:@"faxicon.png"]; instead

Upvotes: 4

Related Questions