Search code examples
objective-cxcodeuitableviewdeprecatedsettext

'setText' is deprecated


Hey guys, So i'm building an app combining Table View and Navigation Controller into my Tab Bar application and while it's compiling, I bumped into an error saying: 'setText' is deprecated

This is the section of my code that got this error:

NSUInteger row = [indexPath row];
cell.text = [glossaryArray objectAtIndex:row]; // Right here is the problem

So hopefully anyone can help me out? Thanks


Solution

  • Use cell.textLabel.text instead.