Post

Replies

Boosts

Views

Activity

Reply to UITableView indexPath changing while scrolling
Cells can be reused, which can lead to such problems. To this end, you should specify the text color of the normal label in the 'else' statement. if flaggedNames.contains(meterNumber) {     cell.textLabel?.textColor = .systemRed } else { cell.textLabel?.textColor = .black }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’21