UITableViewCell show white background and cannot be modified on iOS7

問題:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章