GroupedTableViewWithShadows icon indicating copy to clipboard operation
GroupedTableViewWithShadows copied to clipboard

self.backgroundView is nil

Open hydex86 opened this issue 13 years ago • 1 comments

I'm trying to do the same you did in the example code, but something strange happens. My tableView has 5 cells. When I launch the application and debug your code, I can see self.backgroundView is nil. So their bounds are not set and the layer is nil.

But when launching finishes and I scroll down, on next cells loaded backgroundView is load correctly. I'm doing this:

UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:CellIdentifier];
[cell addShadowToCellInTableView:tableView atIndexPath:indexPath];

Do you know what is probably happening? Autolayout is disabled.

hydex86 avatar Dec 03 '12 23:12 hydex86

@hydex86 Did it work for you?

ashutoshthakur avatar Jun 09 '15 23:06 ashutoshthakur