I'm using Xcode 11.2 and Swift 5
I added this in viewDidLoad(),
tableView.layer.cornerRadius = 10.0
tableView.layer.masksToBounds = true
but corners get unrounded when I scroll like the second image.
How can I keep UITableView's corners rounded even on scroll? I can achieve this by setting corner radius to UITableViewCell but I preferably want to use UITableView.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…