0
這非常簡單。我已經在tableView:willDisplayCell:forRowAtIndexPath:
和tableView:CellForRow:atIndexPath:
中嘗試了幾次。無法使UITableViewCell具有清晰的顏色
這裏是我的代碼:
cell.alpha = 0.0
cell.backgroundView?.alpha = 0.0
cell.contentView.alpha = 0.0
cell.backgroundView?.backgroundColor = UIColor.clear
cell.backgroundColor = UIColor.clear
cell.contentView.backgroundColor = UIColor.clear
我敢肯定這應該是矯枉過正,但我有一個很艱難的時期使這項工作。單元格在if語句內被修改,因爲這隻適用於某些單元格。是的,我檢查過了,if語句按預期工作。有任何想法嗎?
我使用的Xcode 8.2版本的測試版