2010-06-13 152 views
3

我看到UITableViewCellSeparatorStyleSingleLineEtched在Apple的類參考中看起來像什麼的描述,並且可以通過運行該應用程序來看到它。但我找不到任何時候提及合適使用UITableViewCellSeparatorStyleSingleLineEtched而不是UITableViewCellSeparatorStyleSingleLine我什麼時候應該使用UITableViewCellSeparatorStyleSingleLineEtched?

換句話說,這是什麼蝕刻線的意思是給用戶?誰能解釋一下?

回答

3

「爲什麼」部分是因爲普通表格單元格具有白色背景並且蝕刻外觀不合適,而章節標題單元格具有灰色背景並添加了一些高光使其彈出。至少,這是我的解釋。

4

這是來自蘋果的描述:

UITableViewCellSeparatorStyleSingleLine

The separator cell has a single line running across its width. This is the default value 

Available in iPhone OS 2.0 and later. 

Declared in UITableViewCell.h. 

在我看來UITableViewCellSeparatorStyleSingleLineEtched

The separator cell has double lines running across its width, giving it an etched look. This style is currently only supported for grouped-style table views. 

Available in iPhone OS 3.2 and later. 

Declared in UITableViewCell.h. 

所以,SingleLineEtched會顯得更加清晰的分離,使2組分化成各其他,因爲它包含雙線

+2

我發現了。 :)這是一個很好的解釋,但不是爲什麼。蘋果通常不會做兩種視覺風格,沒有它們每一種意味着什麼。但也許這是一個例外。 – 2010-06-13 06:33:20

0

蝕刻的外觀是iPad的tableViews,它沒有在iPhone上看到的細條紋背景。至少,這似乎是慣例。

相關問題