Skip navigation.
 
mlRe: TableView doesn't show alternating colors upon load
FROM : Larry Fransson
DATE : Tue Nov 23 19:05:18 2004

On Nov 23, 2004, at 00:01, Ron Ballesteros wrote:

> In my awakeFromNib, I use [tableView
> setUsesAlternatingRowBackgroundColors: YES] and I still start off
> without the alternating row background color. What surprises me is
> that using [tableView reloadData]; actually causes the alternating row
> background colors to show upon load.
>
> I must be missing something very fundamental but I can't seem to
> figure out why my table view doesn't show the alternating row
> background color upon load when there is no data to show to begin
> with. Am I missing something?


I don't think you're missing anything.  I have noted the same behavior.
  That's just the way it works.  It may or may not be a bug.  You can
always file a bug report if it really bugs you.  Calling -reloadData on
an empty table doesn't take a lot of work for the CPU, so that seems a
fairly reasonable and simple workaround to me.

Larry Fransson
Seattle, WA

Related mailsAuthorDate
mlTableView doesn't show alternating colors upon load Ron Ballesteros Nov 23, 09:01
mlRe: TableView doesn't show alternating colors upon load Larry Fransson Nov 23, 19:05
mlRe: TableView doesn't show alternating colors upon load Ron Ballesteros Nov 24, 00:26