問題:
I've implemented a custom table view cell class that inherit from UITableViewCell
. 我已經實現了一個繼承自UITableViewCell
的自定義表視圖單元類。 The tableview contains a background image, so I want cell's background to be transparent. tableview包含一個背景圖像,所以我希望單元格的背景是透明的。 It looks great before iOS7. 它在iOS7之前看起來很棒。
However, in iOS7, the cell is always shown with a white background. 但是,在iOS7中,單元格始終顯示爲白色背景。
Even for Xcode7, 2015, there is a bug in storyboard : you have to set the background color of a cell in code. 即使對於Xcode7,2015, 故事板中也存在一個錯誤 :您必須在代碼中設置單元格的背景顏色。
解決方案:
參考一: https://en.stackoom.com/question/1HD62參考二: https://stackoom.com/question/1HD62