How to make cells have a gradient background?
问题 I have inserted a table view on my view controller and I was wondering how can I give the cells in the table view a gradient background? Can I edit each cell individually to give it a different color gradient background for each cell? For example, each cell is labeled after an index in the trainingLevels array, how could I make to where each has a different color gradient background? Here's my code: import UIKit class ViewController: UIViewController, UITableViewDelegate,